Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 25f5ab6557b207cfa3e5506e85b01c77ee667a12 1 parent 9fa8ff8
@steffkes steffkes authored jwage committed
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;
Please sign in to comment.
Something went wrong with that request. Please try again.