diff --git a/tools/sandbox/Entities/User.php b/tools/sandbox/Entities/User.php index 9f6af35e1..cd184212c 100644 --- a/tools/sandbox/Entities/User.php +++ b/tools/sandbox/Entities/User.php @@ -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;