when i try to get an object in the bootstrap via User.get(1) or User.findById(1) I get always null returned. I saved the object before with new User(...).save(flush: true) and the user is already in User.list()...
who knows the reason/mistake?
thx
when i try to get an object in the bootstrap via User.get(1) or User.findById(1) I get always null returned. I saved the object before with new User(...).save(flush: true) and the user is already in User.list()...
who knows the reason/mistake?
thx
The domain is probably not being saved due validation errors.
replace your
for
It will print all validation errors in your console.