Affects Version/s: None
Fix Version/s: None
Issue was mentioned here :
To recap : each call to getDataObject would create and register a new data object instance, if that object is not persisted in the database.
For already persisted object there is no problem.
What I would like todo is the following :
Department dep = (Department) cayenneForm.getDataObject(); //<--this call creates and registes new data object
//because saveChanges() also makes a call to getDataObject(), another department is created and registered with cayenne,
//and we end up with two database entries.