From 25f5ab6557b207cfa3e5506e85b01c77ee667a12 Mon Sep 17 00:00:00 2001 From: steffkes Date: Wed, 15 Sep 2010 21:22:26 +0200 Subject: [PATCH] add inverseBy-Attribute to User-Entity to get valide schema --- tools/sandbox/Entities/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;