Thanks Walaa, it would have been a very nice idea. But I already red few parts of the documentation (again) where I think I found a solution. It sounds like the delete would not work because my entities were not fetched, but i'm not sure.
I wanted to delete the relation established between 2 entities on a relation m:n.
The way it worked was to create a new collection of the entity type of the m:n table and call deleteMulti with the appropriate predicate.
EvenementLocLocResCollection evenementLocLocResCollection = new EvenementLocLocResCollection();
evenementLocLocResCollection.DeleteMulti(EvenementLocLocResFields.LocalisationResultatId == loc.LocalisationResultatId);
I wonder how I can achieve that using direct DeleteMulti like this...
loc.EvenementLocLocRes.DeleteMulti();
Because previous code just do nothing on the database. What's the best way to delete ?
EvenementLocLocRes is the collection of entity that make my m:n relation between Loc and EvenementLoc
ie: Loc (1) <--> (m) EvenementLocLocRes (n) <--> (1) EvenementLoc