This topic contains 4 replies, has 2 voices, and was last updated by francesco.2015 6 years, 9 months ago.
- Topic
Hi all,
I’m new to OroCRM and I have inherited a custom version based on Oro 1.8.2. The project is somehow broken and cannot be upgraded using the migration tool, so I have started a new one based on Oro 1.10.18, starting from the stub OroCRM Application.
I have written a migration that adds new fields to the orocrm_account table. The migration works and I’m able to clear the cache. Then I have overrided the datagrid.yml and I have also created an Account.php file to extend original Account.php.
Source code for src/MatchPint/Bundle/DugoutBundleAccount/Entity/Account.php
Source code for src/MatchPint/Bundle/DugoutBundleAccount/Resources/config/datagrid.yml
And a routing.yml in the same directory with the following content:
1234mp_dugout_account_bundle:resource: "@!OroCRMAccountBundle/Controller"type: annotationprefix: /accountAs I said I’m able to clear the cache, but when I try to load /account url, I get a 500 error. On the prod log I can see:
[2017-05-31 17:47:34] request.CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: “An exception has been thrown during the rendering of a template (“No mapping found for field ‘areaManager’ on class ‘OroCRM\Bundle\AccountBundle\Entity\Account’.”) in “/var/www/orocrm/vendor/oro/platform/src/Oro/Bundle/UIBundle/Resources/views/actions/index.html.twig” at line 44.” at /var/www/orocrm/vendor/twig/twig/lib/Twig/Template.php line 182 {“exception”:”[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\”No mapping found for field ‘areaManager’ on class ‘OroCRM\\Bundle\\AccountBundle\\Entity\\Account’.\”) in \”/var/www/orocrm/vendor/oro/platform/src/Oro/Bundle/UIBundle/Resources/views/actions/index.html.twig\” at line 44. at /var/www/orocrm/vendor/twig/twig/lib/Twig/Template.php:182, Doctrine\\ORM\\Mapping\\MappingException(code: 0): No mapping found for field ‘areaManager’ on class ‘OroCRM\\Bundle\\AccountBundle\\Entity\\Account’. at /var/www/orocrm/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:163)”} []
I didn’t override this template: /var/www/orocrm/vendor/oro/platform/src/Oro/Bundle/UIBundle/Resources/views/actions/index.html.twig
So I have no idea where this error is coming from. Any hint?
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.