Typo in documentation
This method from AbstractQuery accepts constants from ClassMetadata rather than string
This commit is contained in:
parent
048c56bdb0
commit
b145ebf955
@ -1363,7 +1363,7 @@ can mark a many-to-one or one-to-one association as fetched temporarily to batch
|
||||
|
||||
<?php
|
||||
$query = $em->createQuery("SELECT u FROM MyProject\User u");
|
||||
$query->setFetchMode("MyProject\User", "address", "EAGER");
|
||||
$query->setFetchMode("MyProject\User", "address", Doctrine\ORM\Mapping\ClassMetadata\FETCH_EAGER);
|
||||
$query->execute();
|
||||
|
||||
Given that there are 10 users and corresponding addresses in the database the executed queries will look something like:
|
||||
|
Loading…
x
Reference in New Issue
Block a user