Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.0.2
-
Fix Version/s: 2.0.3
-
Component/s: Persistence
-
Labels:None
-
Environment:java 1.6 running amazon aws stock beanstalk config, 64bit m1.small instance.
Description
I have domain objects in Grails 2.0.1 that are created and saved with the following syntax:
// nickname is a string
def acct = session.get('account')
def site = new Site(account: acct, nickname: nickname, subItems: [])
in grails 2.0.2 the following has become broken...
In the site object... subItems list is null, and the account instance is null; though null was not passed in for either.
subItems was a simple (non persistent) list. Account is a persistent object though pulled from http session so it is detached.
Issue Links
- is duplicated by
-
GRAILS-8974
Save fails on objects with belongsTo relation
-
-
GRAILS-8975
validator contraint cannot access belongsTo relation object
-
- is related to
-
GRAILS-9127
When I create a class using map constructor, it doesn't behave the same as if I just use dot.properties
-
Grails 2.0.2 introduces implicit white lists to increase security. Can you please set bindable:true on the properties that are not binding. See:
http://grails.org/doc/2.0.2/ref/Constraints/bindable.html