im using grails 2.4.4. im new so I have a noob question probably I have domain class like this:
class E_PreguntaFrecuente {
static embedded=['perfiles','secciones','subsecciones']
String pregunta
String respuesta
Integer orden
static hasMany=[perfiles:E_Perfil,secciones:E_Seccion,subsecciones:E_Subseccion]
static constraints = {
pregunta blank:false
respuesta blank:false
orden blank:false
subsecciones nullable: true
}
}
I want the hasMany list of subsecciones to be nullable... how can I do that? I've tried what you see in the code; subsecciones nullable:true and some other variations like putting (nullable:true) but none of them seem to work, it keeps saying that the subsecciones list is required.
edit
I have no errors, just want to have a non required list...
here is an image of what I mean, i dont know if it can be nullable at save.. but i cant even pass the form part..