We're dealing with a situation where a user is presented with a form to add/remove some simple OneToMany entities of a Parent entity.
After form submission we've replaced the array collection of the parent with a new one based on the form data.
Using cascade={"persist", "remove"} means that any new OneToMany entities are successfully persisted and added to the database when we persist and flush the Parent.
What we would like is for entities which are no longer in the OneToMany ArrayCollection to be automatically removed from the database during the Parent's persist and flush, thereby allowing us to delete the ugly code we wrote to remove them one by one.
Is this possible?