codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
42 stars 24 forks source link

Error without DCA #39

Closed aschempp closed 10 years ago

aschempp commented 10 years ago
Warning: Invalid argument supplied for foreach() in system/modules/haste/library/Haste/Model/Relations.php on line 38
#0 system/modules/haste/library/Haste/Model/Relations.php(38): __error(2, 'Invalid argumen...', '/home/httpd/vho...', 38, Array)
#1 system/modules/core/library/Contao/Controller.php(2378): Haste\Model\Relations->addRelationCallbacks('tl_countryresp')
#2 system/modules/core/drivers/DC_Table.php(3150): Contao\Controller->loadDataContainer('tl_countryresp')
#3 system/modules/core/drivers/DC_Table.php(333): Contao\DC_Table->reviseTable()
#4 system/modules/core/classes/Backend.php(424): Contao\DC_Table->showAll()
#5 contao/main.php(136): Contao\Backend->getBackendModule('page')
#6 contao/main.php(287): Main->run()
#7 {main}

There is no DCA for the table tl_countryresp

qzminski commented 10 years ago

How is that possible?

aschempp commented 10 years ago

There is only a database table in database.sql

qzminski commented 10 years ago

Can you try my fix? I don't have a test environment without DCAs.

aschempp commented 10 years ago

Error is gone :-)