ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 3 voices, and was last updated by adriwan_kenoby adriwan_kenoby 10 months, 3 weeks ago.

  • Creator
    Topic
  • #17546

    hello_world
    Participant

    I’va had a demo bundle with a demo entity which i removed recently and now I’m experiencing an exception:

    I already tried to remove cache and rebuild entity config, but problem still persists.
    Here are commands:

    I found a row in database table called oro_entity_config with data about with entity. It also still there after running all above commands.

    Stack trace:
    [1] ReflectionException: Class Crm\Bundle\DemoBundle\Entity\Demo does not exist at n/a in /var/www/vendor/oro/platform/src/Oro/Bundle/EntityBundle/Provider/EntityHierarchyProvider.php line 110 at ReflectionClass->__construct('Crm\Bundle\DemoBundle\Entity\Demo') in /var/www/vendor/oro/platform/src/Oro/Bundle/EntityBundle/Provider/EntityHierarchyProvider.php line 110 at Oro\Bundle\EntityBundle\Provider\EntityHierarchyProvider->loadParents(array(), 'Crm\Bundle\DemoBundle\Entity\Demo') in /var/www/vendor/oro/platform/src/Oro/Bundle/EntityBundle/Provider/EntityHierarchyProvider.php line 81 at Oro\Bundle\EntityBundle\Provider\EntityHierarchyProvider->ensureHierarchyInitialized() in /var/www/vendor/oro/platform/src/Oro/Bundle/EntityBundle/Provider/EntityHierarchyProvider.php line 42 at Oro\Bundle\EntityBundle\Provider\EntityHierarchyProvider->getHierarchy() in /var/www/vendor/oro/platform/src/Oro/Bundle/EntityBundle/Provider/AbstractConfigVirtualProvider.php line 47 at Oro\Bundle\EntityBundle\Provider\AbstractConfigVirtualProvider->ensureVirtualFieldsInitialized() in /var/www/vendor/oro/platform/src/Oro/Bundle/EntityBundle/Provider/ConfigVirtualRelationProvider.php line 14 at Oro\Bundle\EntityBundle\Provider\ConfigVirtualRelationProvider->isVirtualRelation('OroCRM\Bundle\CampaignBundle\Entity\Campaign', false) in /var/www/vendor/oro/platform/src/Oro/Bundle/EntityBundle/Provider/ChainVirtualRelationProvider.php line 15 at Oro\Bundle\EntityBundle\Provider\ChainVirtualRelationProvider->isVirtualRelation('OroCRM\Bundle\CampaignBundle\Entity\Campaign', false) in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/AbstractQueryConverter.php line 873 at Oro\Bundle\QueryDesignerBundle\QueryDesigner\AbstractQueryConverter->replaceJoinsForVirtualRelation('') in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/AbstractQueryConverter.php line 1071 at Oro\Bundle\QueryDesignerBundle\QueryDesigner\AbstractQueryConverter->addTableAliasesForJoinIdentifiers(array('')) in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/AbstractQueryConverter.php line 708 at Oro\Bundle\QueryDesignerBundle\QueryDesigner\AbstractQueryConverter->addTableAliasForRootEntity() in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/AbstractQueryConverter.php line 419 at Oro\Bundle\QueryDesignerBundle\QueryDesigner\AbstractQueryConverter->prepareTableAliases() in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/AbstractQueryConverter.php line 400 at Oro\Bundle\QueryDesignerBundle\QueryDesigner\AbstractQueryConverter->buildQuery() in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/AbstractQueryConverter.php line 386 at Oro\Bundle\QueryDesignerBundle\QueryDesigner\AbstractQueryConverter->doConvert(object(Report)) in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/QueryDesigner/GroupingOrmQueryConverter.php line 46 at Oro\Bundle\QueryDesignerBundle\QueryDesigner\GroupingOrmQueryConverter->doConvert(object(Report)) in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/Grid/DatagridConfigurationQueryConverter.php line 98 at Oro\Bundle\QueryDesignerBundle\Grid\DatagridConfigurationQueryConverter->doConvert(object(Report)) in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/Grid/DatagridConfigurationQueryConverter.php line 83 at Oro\Bundle\QueryDesignerBundle\Grid\DatagridConfigurationQueryConverter->convert('oro_report_table_1', object(Report)) in /var/www/vendor/oro/platform/src/Oro/Bundle/QueryDesignerBundle/Grid/DatagridConfigurationBuilder.php line 104 at Oro\Bundle\QueryDesignerBundle\Grid\DatagridConfigurationBuilder->getConfiguration() in /var/www/vendor/oro/platform/src/Oro/Bundle/ReportBundle/Grid/BaseReportConfigurationBuilder.php line 37 at Oro\Bundle\ReportBundle\Grid\BaseReportConfigurationBuilder->getConfiguration() in /var/www/vendor/oro/platform/src/Oro/Bundle/ReportBundle/Grid/ReportDatagridConfigurationBuilder.php line 14 at Oro\Bundle\ReportBundle\Grid\ReportDatagridConfigurationBuilder->getConfiguration() in /var/www/vendor/oro/platform/src/Oro/Bundle/ReportBundle/Grid/ReportDatagridConfigurationProvider.php line 63 at Oro\Bundle\ReportBundle\Grid\ReportDatagridConfigurationProvider->getConfiguration('oro_report_table_1') in /var/www/vendor/oro/platform/src/Oro/Bundle/ReportBundle/Grid/ReportDatagridConfigurationProvider.php line 78 at Oro\Bundle\ReportBundle\Grid\ReportDatagridConfigurationProvider->isReportValid('oro_report_table_1') in /var/www/vendor/oro/platform/src/Oro/Bundle/ReportBundle/Controller/ReportController.php line 47 at Oro\Bundle\ReportBundle\Controller\ReportController->viewAction(object(Report)) in line at call_user_func_array(array(object(ReportController), 'viewAction'), array(object(Report))) in /var/www/app/bootstrap.php.cache line 3109 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in /var/www/app/bootstrap.php.cache line 3071 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in /var/www/app/bootstrap.php.cache line 3222 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in /var/www/app/bootstrap.php.cache line 2444 at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) in /var/www/web/app_dev.php line 30

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #17551

    Alexander
    Oro Core

    Hi,

    the mentioned commands never delete from entities configuration.
    So, if you remove the bundle manually you will have to remove the configuration manually too, the same for tables that relates to your demo bundle
    The right way will be the creation of a migration to do all removals.

    #17552

    hello_world
    Participant

    Thanks, after some trial and error i managed to get rid of this problem.

    #24145
    adriwan_kenoby
    adriwan_kenoby
    Participant

    How do you solve your problem ? I have the same issue and i would like to know…

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.