l3pp4rd/DoctrineExtensions — Issue #220: ClassMetadata vs ClassMetadataInfo interfaces
Author: pcampr
Created: 2012-01-02 10:07:47+00:00
State: open

when using doctrine:generate:entities command (in Symfony2 context, but probably the issue is not related to Symfony2), with master branches of DoctrineExtensions and Doctrine, an exception is thrown:

Generating entities for namespace "Abc"

[ErrorException]

Catchable Fatal Error: Argument 1 passed to Gedmo/Mapping/Driver/Chain::readExtendedMetadata() must implement interface Doctrine/Common/Persistence/Mapping/ClassMetadata, instance of Doctrine/ORM/Mapping/ClassMetadataInfo given, called in ..../vendor/gedmo-doctrine-extensions/lib/Gedmo/Mapping/ExtensionMetadataFactory.php on line 91 and defined in ..../vendor/gedmo-doctrine-extensions/lib/Gedmo/Mapping/Driver/Chain.php line 50

I don't know if the error is related to my code, changes in Doctrine2 code or something else... same error was reported to Doctrine2 http://www.doctrine-project.org/jira/browse/DDC-1565 , with a note "This is foremost a bug in Gedmos library, he hints for a ClassMetadata where none is expected."