grails - Constraint on hasMany or callback when addTo or removeFrom is called -



grails - Constraint on hasMany or callback when addTo or removeFrom is called -

is there other generic approach receving callback, when object added hasmany-relationship (like addto or removefrom called)? unfortunately beforevalidate not called when object added or removed or @ to the lowest degree property hasmanyxys not dirty if object removed or added. need something, if object added or removed abc.

class abc { list hasmanyxys static hasmany = [hasmanyxys: xy] }

i tried add together constraint list:

class abc { list hasmanyxys static hasmany = [hasmanyxys: xy] static constraints = { hasmanyxys(validator: { true } } }

but @ to the lowest degree of grails version 2.0.5, server not start , gives error this:

no such property: hasmanyxys class: xy possible solutions: hasmanyxys. stacktrace follows:

grails gorm

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -