1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Changed method name in an example for fetching class metadata

This commit is contained in:
goran 2010-10-23 20:45:45 +08:00 committed by Benjamin Eberlei
parent 69d4e185d8
commit 54a61bbbc2

View File

@ -45,7 +45,10 @@ Now we can easily retrieve the populated `ClassMetadata` instance where the `PHP
includes the file and the `ClassMetadataFactory` caches it for later retrieval:
[php]
$class = $em->getMetadataFor('Entities\User');
$class = $em->getClassMetadata('Entities\User');
// or
$class = $em->getMetadataFactory()->getMetadataFor('Entities\User');
++ Static Function