1
0
mirror of synced 2025-01-09 18:47:10 +03:00

Added 'fetch="EAGER"' to one-to-one association

This commit is contained in:
Menno Holtkamp 2014-03-30 16:01:46 +02:00
parent 798075931a
commit 3044009550

View File

@ -23,7 +23,7 @@ class User
public $email; public $email;
/** /**
* @OneToOne(targetEntity="Doctrine\Tests\ORM\Tools\Export\Address", inversedBy="user", cascade={"persist"}, orphanRemoval=true) * @OneToOne(targetEntity="Doctrine\Tests\ORM\Tools\Export\Address", inversedBy="user", cascade={"persist"}, orphanRemoval=true, fetch="EAGER")
* @JoinColumn(name="address_id", onDelete="CASCADE") * @JoinColumn(name="address_id", onDelete="CASCADE")
*/ */
public $address; public $address;