Hi. Can you help me with Nextras ORM?
I'm not sure, hwo to handle removing entity.
This entity has OneHasMany relationship to another repository. Where it has thousends of related rows.
When I want to delete this entity, and the property to the other repository has cascade=[persist,remove], it removes the related entitis, but it executes sql DELETE query for each entity. So in this case it does thousends of separate queries.
It would be easier to do just one query that deletes all related rows. But I do not know where exactly should I do that?
Is that a responsability of Repository? Mapper? Or Entity?