Grails

org.hibernate.AssertionFailure: collection [...] was not processed by flush() when changing child records in beforeXXX event methods in parent record