1
0
mirror of synced 2024-12-05 03:06:05 +03:00

add inverseBy-Attribute to User-Entity to get valide schema

This commit is contained in:
steffkes 2010-09-15 21:22:26 +02:00 committed by Jonathan H. Wage
parent 9fa8ff86f8
commit 25f5ab6557

View File

@ -13,7 +13,7 @@ class User
/** @Column(type="string", length=50) */
private $name;
/**
* @OneToOne(targetEntity="Address")
* @OneToOne(targetEntity="Address", inversedBy="user")
* @JoinColumn(name="address_id", referencedColumnName="id")
*/
private $address;