Grails

Persisting a List hasMany association fails in some cases if the associated class belongsTo the other class