add inverseBy-Attribute to User-Entity to get valide schema
This commit is contained in:
parent
9fa8ff86f8
commit
25f5ab6557
@ -13,7 +13,7 @@ class User
|
|||||||
/** @Column(type="string", length=50) */
|
/** @Column(type="string", length=50) */
|
||||||
private $name;
|
private $name;
|
||||||
/**
|
/**
|
||||||
* @OneToOne(targetEntity="Address")
|
* @OneToOne(targetEntity="Address", inversedBy="user")
|
||||||
* @JoinColumn(name="address_id", referencedColumnName="id")
|
* @JoinColumn(name="address_id", referencedColumnName="id")
|
||||||
*/
|
*/
|
||||||
private $address;
|
private $address;
|
||||||
|
Loading…
Reference in New Issue
Block a user