Skip to content
Browse files

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

  • Loading branch information...
1 parent 9fa8ff8 commit 25f5ab6557b207cfa3e5506e85b01c77ee667a12 @steffkes steffkes committed with jwage Sep 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/sandbox/Entities/User.php
View
2 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;

0 comments on commit 25f5ab6

Please sign in to comment.
Something went wrong with that request. Please try again.