StofDoctrineExtensionsBundle icon indicating copy to clipboard operation
StofDoctrineExtensionsBundle copied to clipboard

Argument 1 passed to Gedmo\Mapping\MappedEventSubscriber::loadMetadataForObjectClass

Open xeux opened this issue 5 years ago • 0 comments

I have been looking at this error, and the solution from 2011 was to update ORM to 2.0.

Complete error: Type error: Argument 1 passed to Gedmo\Mapping\MappedEventSubscriber::loadMetadataForObjectClass() must implement interface Doctrine\Common\Persistence\ObjectManager, instance of Doctrine\ORM\EntityManager given, called in **/vendor/gedmo/doctrine-extensions/lib/Gedmo/AbstractTrackingListener.php on line 46

Symfony: 3.4.45 ORM: 2.7 Stof: 1.3.0

Composer: "require": { "php": ">=5.5.9", "doctrine/doctrine-bundle": "^1.6", "doctrine/orm": "^2.5", "incenteev/composer-parameter-handler": "^2.0", "knplabs/knp-paginator-bundle": "^2.8", "knplabs/knp-time-bundle": "^1.9", "phpoffice/phpspreadsheet": "^1.8", "sensio/framework-extra-bundle": "^5.0.0", "stof/doctrine-extensions-bundle": "^1.3", "symfony/monolog-bundle": "^3.1.0", "symfony/polyfill-apcu": "^1.0", "symfony/swiftmailer-bundle": "^2.6.4", "symfony/symfony": "3.4.*", "twig/twig": "^1.0||^2.0", "whiteoctober/tcpdf-bundle": "^1.1", "guzzlehttp/guzzle": "^6.2.1", "kreait/firebase-php": "^5.6" },

The error occurs when I enable timestampable in config.yml

Any idea what could it be?, thanks for your help.

xeux avatar Oct 18 '20 20:10 xeux