Details
Description
Clearing ManyToMany association doesn't work. I needed to clear the roles of the user (after form submit) and then add the checked roles. Also counting them doesn't work properly.
See the clearRoles method in the attachment.
//EDIT: Don't know if it's important but the association is bidirectional.
Issue Links
- duplicates
-
DDC-1189
PersistentCollection::clear() does not cause the collection to be initialized
-
Can you provide more context, like the code that is using the entity? Thanks.