Guite / MostGenerator

Transformation cartridges for generating Symfony bundles from ModuleStudio models.
https://modulestudio.de
23 stars 2 forks source link

content plugin for single items is not working #320

Closed rallek closed 11 years ago

rallek commented 11 years ago

the logic is confusing

there is a selector for category, but this one makes no sence because why should I choose the category? By the way, the categories are not shown in the dropdown, there is only "all" available. after selecting one item and saving the content page I do get the following error:

Classifieds detail view [ID11] Object type If you change this please save the element once to reload the parameters below. WARN (4): E_WARNING: class_parents() [function.class-parents]: Class Classifieds_Entity_2 does not exist and could not be loaded in /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/plugins/Doctrine/lib/vendor/Doctrine/ORM/Mapping/ClassMetadataFactory.php line 223 WARN (4): E_WARNING: array_reverse() expects parameter 1 to be array, boolean given in /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/plugins/Doctrine/lib/vendor/Doctrine/ORM/Mapping/ClassMetadataFactory.php line 223 WARN (4): E_WARNING: Invalid argument supplied for foreach() in /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/plugins/Doctrine/lib/vendor/Doctrine/ORM/Mapping/ClassMetadataFactory.php line 223 Error on Seitenname

Could not load the 'content' module at 'editcontent'.
Class Classifieds_Entity_2 does not exist

Exception Trace
#0 Exception thrown in /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/plugins/Doctrine/lib/vendor/Doctrine/ORM/Mapping/ClassMetadata.php, line 66.
#1 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/plugins/Doctrine/lib/vendor/Doctrine/ORM/Mapping/ClassMetadataFactory.php(377): Doctrine\ORM\Mapping\ClassMetadata->__construct('Classifieds_Ent...')
#2 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/plugins/Doctrine/lib/vendor/Doctrine/ORM/Mapping/ClassMetadataFactory.php(263): Doctrine\ORM\Mapping\ClassMetadataFactory->newClassMetadataInstance('Classifieds_Ent...')
#3 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/plugins/Doctrine/lib/vendor/Doctrine/ORM/Mapping/ClassMetadataFactory.php(170): Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata('Classifieds_Ent...')
#4 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/plugins/Doctrine/lib/vendor/Doctrine/ORM/EntityManager.php(257): Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor('Classifieds_Ent...')
#5 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/plugins/Doctrine/lib/vendor/Doctrine/ORM/EntityManager.php(574): Doctrine\ORM\EntityManager->getClassMetadata('Classifieds_Ent...')
#6 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/modules/Classifieds/lib/Classifieds/Form/Plugin/Base/ItemSelector.php(108): Doctrine\ORM\EntityManager->getRepository('Classifieds_Ent...')
#7 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/lib/Zikula/Form/View.php(400): Classifieds_Form_Plugin_Base_ItemSelector->render(Object(Zikula_Form_View))
#8 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/modules/Classifieds/templates/plugins/function.classifiedsItemSelector.php(24): Zikula_Form_View->registerPlugin('Classifieds_For...', Array)
#9 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/ztemp/view_compiled/Content/file:/www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/modules/Classifieds/templates/contenttype/item_edit--t_Andreas08-l_en.php(18): smarty_function_classifiedsItemSelector(Array, Object(Zikula_Form_View))
#10 /usr/share/php/smarty/Smarty.class.php(1869): include('/www/htdocs/w00...')
#11 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/ztemp/view_compiled/Content/admin/editcontent--t_Andreas08-l_en.php(31): Smarty->_smarty_include(Array)
#12 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/lib/Zikula/View.php(2882): include('/www/htdocs/w00...')
#13 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/lib/Zikula/View.php(729): Zikula_View->_fetch('admin/editconte...', '', '', false)
#14 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/lib/Zikula/Form/View.php(285): Zikula_View->fetch('admin/editconte...')
#15 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/modules/Content/lib/Content/Controller/Admin.php(87): Zikula_Form_View->execute('admin/editconte...', Object(Content_Form_Handler_Admin_EditContent))
#16 [internal function]: Content_Controller_Admin->editcontent(Array)
#17 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/lib/util/ModUtil.php(1091): call_user_func(Array, Array)
#18 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/lib/util/ModUtil.php(1173): ModUtil::exec('Content', 'admin', 'editcontent', Array, false, NULL)
#19 /www/htdocs/w00dd23a/www/kleinanzeigen/Zikula/index.php(78): ModUtil::func('Content', 'admin', 'editcontent', Array)
#20 {main}
Guite commented 11 years ago

Fixed in f9401bf889d4cc1009013233991275adb6dd6264