controller - Grails: Delete relation Domain -


i want asked project. have 2 domain this

i suggest in gorm documentation. have ways declare relationship between classes, , depending on them delete cascade or not.

this behavior explained in "6.3.3 understanding cascading updates , deletes".

whether one-to-one, one-to-many or many-to-many, defining belongsto result in updates cascading owning class dependant (the other side of relationship), , many-/one-to-one , one-to-many relationships deletes cascade.

so should consider declaring hasmany , belongsto, enable cascading deletes.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -