Answer the question
In order to leave comments, you need to log in
What's the point of unique in join-columns with ManyToMany?
<many-to-many target-entity="App\Domain\AccessControlListPack\Role\Entity\Role"
field="roles"
inversed-by="features"
index-by="uuid"
>
<cascade>
<cascade-persist/>
</cascade>
<join-table name="roles_features">
<join-columns>
<join-column name="feature_uuid"
referenced-column-name="uuid"
nullable="false"
unique="false"
/>
</join-columns>
<inverse-join-columns>
<join-column name="role_uuid" referenced-column-name="uuid"/>
</inverse-join-columns>
</join-table>
</many-to-many>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question