Skip to content

Conflict with doctrine/orm 3 #77

@veronikaplenta

Description

@veronikaplenta

After updating to the latest version, in Contao 5.6 I get the following error:

Attempted to load class "ClassMetadataInfo" from namespace "Doctrine\ORM\Mapping".
Did you forget a "use" statement for another namespace?
ClassNotFoundError

Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "ClassMetadataInfo" from namespace "Doctrine\ORM\Mapping".
Did you forget a "use" statement for another namespace?

  at vendor/mvo/contao-group-widget/src/Storage/EntityStorageFactory.php:54
  at Mvo\ContaoGroupWidget\Storage\EntityStorageFactory->create()
     (vendor/mvo/contao-group-widget/src/Group/Registry.php:110)
  at Mvo\ContaoGroupWidget\Group\Registry->createStorage()
     (vendor/mvo/contao-group-widget/src/Group/Registry.php:95)
  at Mvo\ContaoGroupWidget\Group\Registry->createGroup()
     (vendor/mvo/contao-group-widget/src/Group/Registry.php:68)
  at Mvo\ContaoGroupWidget\Group\Registry->getGroup()
     (vendor/mvo/contao-group-widget/src/EventListener/GroupWidgetListener.php:119)
  at Mvo\ContaoGroupWidget\EventListener\GroupWidgetListener->onLoadDataContainer()
     (vendor/contao/core-bundle/contao/drivers/DC_Table.php:221)
  at Contao\DC_Table->__construct()
     (vendor/contao/core-bundle/contao/classes/Backend.php:296)
  at Contao\Backend->getBackendModule()
     (vendor/contao/core-bundle/contao/controllers/BackendMain.php:144)
  at Contao\BackendMain->run()
     (vendor/contao/core-bundle/src/Controller/BackendController.php:44)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:42)                

This is due to ClassMetadataInfo being removed in ORM 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions