How to create schema using Schema tool in v2.9.x? #6697

Closed
opened 2026-01-22 15:37:12 +01:00 by admin · 3 comments
Owner

Originally created by @simPod on GitHub (Apr 19, 2021).

Originally assigned to: @greg0ire on GitHub.

SchemaTool::createSchema() expects list<Doctrine\ORM\Mapping\ClassMetadata>.

I used to pass in metadata created as $entityManager->getMetadataFactory()->getAllMetadata() that returns array<Doctrine\Persistence\Mapping> so it's incompatible now.

I checked this I but seems to have the same issue bcb4889a2c/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php (L58-L66)

Originally created by @simPod on GitHub (Apr 19, 2021). Originally assigned to: @greg0ire on GitHub. `SchemaTool::createSchema()` expects `list<Doctrine\ORM\Mapping\ClassMetadata>`. I used to pass in metadata created as `$entityManager->getMetadataFactory()->getAllMetadata()` that returns `array<Doctrine\Persistence\Mapping>` so it's incompatible now. I checked this I but seems to have the same issue https://github.com/doctrine/orm/blob/bcb4889a2c8eb57080f10494554dad5a0ffb1434/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php#L58-L66
admin closed this issue 2026-01-22 15:37:13 +01:00
Author
Owner

@greg0ire commented on GitHub (Apr 19, 2021):

That was me in 71044894a1 , right? But the class metadata factory of the entity manager can only return Doctrine\ORM\Mapping\ClassMetadata, right?

I think something similar to 06fadcdd8c/lib/Doctrine/ORM/EntityManagerInterface.php (L37-L38) could be contributed to Doctrine\ORM\Mapping\ClassMetadataFactory to declare that getAllMetadata() in fact returns a list<Doctrine\ORM\Mapping\ClassMetadata>.

Can you try adding such a comment in that class to confirm that it does solve the issue?

UPD: the above has been contributed to 2.8.x, but is not yet merged up, so you would have to copy that too.

it's incompatible now.

According to PHP or PHPStan? I'm trying to determine if there is a BC-break here , e.g. is there a reasonable scenario where we would really pass non-instances Doctrine\ORM\Mapping\ClassMetadata.

@greg0ire commented on GitHub (Apr 19, 2021): That was me in 71044894a16cb0fb2a7466b6a6f59db40e8182d6 , right? But the class metadata factory of the entity manager can only return `Doctrine\ORM\Mapping\ClassMetadata`, right? I think something similar to https://github.com/doctrine/orm/blob/06fadcdd8c619d114db9b996a858af4686bbc022/lib/Doctrine/ORM/EntityManagerInterface.php#L37-L38 could be contributed to `Doctrine\ORM\Mapping\ClassMetadataFactory` to declare that `getAllMetadata()` in fact returns a `list<Doctrine\ORM\Mapping\ClassMetadata>`. Can you try adding such a comment in that class to confirm that it does solve the issue? UPD: the above has been contributed to 2.8.x, but is not yet merged up, so you would have to copy that too. > it's incompatible now. According to PHP or PHPStan? I'm trying to determine if there is a BC-break here , e.g. is there a reasonable scenario where we would really pass non-instances `Doctrine\ORM\Mapping\ClassMetadata`.
Author
Owner

@beberlei commented on GitHub (Apr 19, 2021):

Wouldn't AbstractClassMetadataFactory need to implement Psalm generics/template to make this possible?

@beberlei commented on GitHub (Apr 19, 2021): Wouldn't AbstractClassMetadataFactory need to implement Psalm generics/template to make this possible?
Author
Owner

@greg0ire commented on GitHub (Apr 19, 2021):

I think it would be one way to do it, but there is I think another way to do this by using @method. And that one does not involve changing doctrine/persistence. A PR is on the way, and I think doing this @method trick will greatly reduce the baseline too :)

 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   Doctrine/ORM/Cache/DefaultCache.php
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$associationMappings\.$# in path
         /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/DefaultCache.php was not matched in reported errors.
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$rootEntityName\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/DefaultCache.php
         was not matched in reported errors.
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         Ignored error pattern #^Parameter \#1 \$metadata of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:buildCacheEntry\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata,
         Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php was not matched in reported
         errors.
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$rootEntityName\.$# in path
         /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php was not matched in reported errors.
         Ignored error pattern #^Parameter \#1 \$metadata of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:buildCacheEntry\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata,
         Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php was not matched in reported errors.
         Ignored error pattern #^Parameter \#1 \$metadata of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:loadCacheEntry\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata,
         Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php was not matched in reported errors.
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   Doctrine/ORM/Cache/Persister/Entity/NonStrictReadWriteCachedEntityPersister.php
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$rootEntityName\.$# in path
         /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/NonStrictReadWriteCachedEntityPersister.php was not matched in reported errors.
         Ignored error pattern #^Parameter \#1 \$metadata of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:buildCacheEntry\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata,
         Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/NonStrictReadWriteCachedEntityPersister.php was not matched in
         reported errors.
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   Doctrine/ORM/EntityManager.php
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$identifier\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not
         matched in reported errors.
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$isIdentifierComposite\.$# in path
         /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors.
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not
         matched in reported errors.
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$rootEntityName\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was
         not matched in reported errors.
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$subClasses\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not
         matched in reported errors.
         Ignored error pattern #^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:newInstance\(\)\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not
         matched in reported errors.
         Ignored error pattern #^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:setIdentifierValues\(\)\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php
         was not matched in reported errors.
         Ignored error pattern #^Method Doctrine\\ORM\\EntityManager\:\:getClassMetadata\(\) should return Doctrine\\ORM\\Mapping\\ClassMetadata but returns Doctrine\\Persistence\\Mapping\\ClassMetadata\.$# in
         path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors.
         Ignored error pattern #^Parameter \#2 \$class of method Doctrine\\ORM\\EntityManager\:\:checkLockRequirements\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata,
         Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors.
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   Doctrine/ORM/Mapping/ClassMetadataFactory.php
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$isEmbeddedClass\.$# in path
         /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php was not matched in reported errors.
         Ignored error pattern #^Parameter \#1 \$subClass of method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addNestedEmbeddedClasses\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata,
         Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php was not matched in reported errors.
  161    Ignored error pattern #^Parameter \#2 \$parent of method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:inheritIdGeneratorMapping\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadataInfo,
         Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php is expected to occur 2 times, but occurred only 1 time.
  177    Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php
         is expected to occur 4 times, but occurred only 3 times.
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 ------ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   Doctrine/ORM/Tools/SchemaValidator.php
 ------ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$associationMappings\.$# in path
         /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was not matched in reported errors.
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$containsForeignIdentifier\.$# in path
         /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was not matched in reported errors.
         Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was
         not matched in reported errors.
         Ignored error pattern #^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:getIdentifierColumnNames\(\)\.$# in path
         /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was not matched in reported errors.
         Ignored error pattern #^Parameter \#1 \$class of method Doctrine\\ORM\\Tools\\SchemaValidator\:\:validateClass\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadataInfo,
         Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was not matched in reported errors.
 ------ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@greg0ire commented on GitHub (Apr 19, 2021): I think it would be one way to do it, but there is I think another way to do this by using `@method`. And that one does not involve changing `doctrine/persistence`. A PR is on the way, and I think doing this `@method` trick will greatly reduce the baseline too :) <details> ``` ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Line Doctrine/ORM/Cache/DefaultCache.php ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$associationMappings\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/DefaultCache.php was not matched in reported errors. Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$rootEntityName\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/DefaultCache.php was not matched in reported errors. ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Line Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Ignored error pattern #^Parameter \#1 \$metadata of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:buildCacheEntry\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata, Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php was not matched in reported errors. ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Line Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$rootEntityName\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php was not matched in reported errors. Ignored error pattern #^Parameter \#1 \$metadata of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:buildCacheEntry\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata, Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php was not matched in reported errors. Ignored error pattern #^Parameter \#1 \$metadata of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:loadCacheEntry\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata, Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php was not matched in reported errors. ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Line Doctrine/ORM/Cache/Persister/Entity/NonStrictReadWriteCachedEntityPersister.php ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$rootEntityName\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/NonStrictReadWriteCachedEntityPersister.php was not matched in reported errors. Ignored error pattern #^Parameter \#1 \$metadata of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:buildCacheEntry\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata, Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Cache/Persister/Entity/NonStrictReadWriteCachedEntityPersister.php was not matched in reported errors. ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Line Doctrine/ORM/EntityManager.php ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$identifier\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors. Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$isIdentifierComposite\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors. Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors. Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$rootEntityName\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors. Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$subClasses\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors. Ignored error pattern #^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:newInstance\(\)\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors. Ignored error pattern #^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:setIdentifierValues\(\)\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors. Ignored error pattern #^Method Doctrine\\ORM\\EntityManager\:\:getClassMetadata\(\) should return Doctrine\\ORM\\Mapping\\ClassMetadata but returns Doctrine\\Persistence\\Mapping\\ClassMetadata\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors. Ignored error pattern #^Parameter \#2 \$class of method Doctrine\\ORM\\EntityManager\:\:checkLockRequirements\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata, Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/EntityManager.php was not matched in reported errors. ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Line Doctrine/ORM/Mapping/ClassMetadataFactory.php ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$isEmbeddedClass\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php was not matched in reported errors. Ignored error pattern #^Parameter \#1 \$subClass of method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addNestedEmbeddedClasses\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata, Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php was not matched in reported errors. 161 Ignored error pattern #^Parameter \#2 \$parent of method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:inheritIdGeneratorMapping\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadataInfo, Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php is expected to occur 2 times, but occurred only 1 time. 177 Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php is expected to occur 4 times, but occurred only 3 times. ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Line Doctrine/ORM/Tools/SchemaValidator.php ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$associationMappings\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was not matched in reported errors. Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$containsForeignIdentifier\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was not matched in reported errors. Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was not matched in reported errors. Ignored error pattern #^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:getIdentifierColumnNames\(\)\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was not matched in reported errors. Ignored error pattern #^Parameter \#1 \$class of method Doctrine\\ORM\\Tools\\SchemaValidator\:\:validateClass\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadataInfo, Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$# in path /home/greg/dev/doctrine-orm/lib/Doctrine/ORM/Tools/SchemaValidator.php was not matched in reported errors. ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ``` </details>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6697