What I'm doing with this patch is marking the entity for update when there is a modification in the ManyToMany relationship so the listeners are notified about it. The main reason for this is for hooking up services like Solr or other indexers to update the entities even for ManyToMany relationships.