1
0
mirror of synced 2025-01-10 11:07:10 +03:00

Merge pull request #990 from Remper/patch-1

Typo in documentation
This commit is contained in:
Marco Pivetta 2014-03-27 13:51:28 +01:00
commit ca19db34d2

View File

@ -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: