Created
March 13, 2019 19:04
-
-
Save erikfig/665b21ecb7e50b484d0baec7305c3821 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Many User have Many Phonenumbers. | |
* @ManyToMany(targetEntity="Phonenumber") | |
* @JoinTable(name="users_phonenumbers", | |
* joinColumns={@JoinColumn(name="users_id", referencedColumnName="id")}, | |
* inverseJoinColumns={@JoinColumn(name="phonesnumber_id", referencedColumnName="id", unique=true)} | |
* ) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment