Merge pull request #938 from HermanPeeren/master
Missing join-tables added in example
This commit is contained in:
commit
7ceb9b0b50
@ -42,6 +42,7 @@ information about its type and if it's the owning or inverse side.
|
|||||||
* Bidirectional - Many users have Many favorite comments (OWNING SIDE)
|
* Bidirectional - Many users have Many favorite comments (OWNING SIDE)
|
||||||
*
|
*
|
||||||
* @ManyToMany(targetEntity="Comment", inversedBy="userFavorites")
|
* @ManyToMany(targetEntity="Comment", inversedBy="userFavorites")
|
||||||
|
* @JoinTable(name="user_favorite_comments")
|
||||||
*/
|
*/
|
||||||
private $favorites;
|
private $favorites;
|
||||||
|
|
||||||
@ -49,6 +50,7 @@ information about its type and if it's the owning or inverse side.
|
|||||||
* Unidirectional - Many users have marked many comments as read
|
* Unidirectional - Many users have marked many comments as read
|
||||||
*
|
*
|
||||||
* @ManyToMany(targetEntity="Comment")
|
* @ManyToMany(targetEntity="Comment")
|
||||||
|
* @JoinTable(name="user_read_comments")
|
||||||
*/
|
*/
|
||||||
private $commentsRead;
|
private $commentsRead;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user