Added 'fetch="EAGER"' to one-to-one association
This commit is contained in:
parent
798075931a
commit
3044009550
@ -23,7 +23,7 @@ class User
|
||||
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")
|
||||
*/
|
||||
public $address;
|
||||
|
Loading…
Reference in New Issue
Block a user