Changed method name in an example for fetching class metadata
This commit is contained in:
parent
69d4e185d8
commit
54a61bbbc2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user