Thanks,
Due to lack of other options, I have tried switching to using No
Prototype and setting a custom Data Type to NSArray. I don't see much
change and it still ends up trying to NULLIFY the department IDs.
I have also tried now to no success passing a String departmentName
from
the WOBrowser.
I then fetch Department EO from the database using departmentName and
use addObjectToBothSidesOfRelationshipWithKey(departmentEO,
"departments");
It still produces the SET ID = NULL erroneous sql statement.
Chuck, any suggestions now that it is immutable type?
Any input is appreciated.
Dmitri
-----Original Message-----
From: Anjo Krank [mailto:email@hidden]
Sent: Tuesday, February 12, 2008 3:04 PM
To: Chuck Hill
Cc: Sennikov, Dimitri; WebObjects Dev Apple
Subject: Re: Error on saveChanges with WOBrowser or WOCheckBoxList
Dimitri,
Am 12.02.2008 um 20:47 schrieb Chuck Hill:
Using mutable classes as attributes is a very, very, very bad idea.
I know, I have tried it. EOF expects attributes to be immutable.
Make it immutable and add cover methods to add and remove items.
Until you fix this, there is no point in looking at the "ID getting
set to null" problem.
Pay no heed to Chuck's ramblings. You should be OK as long as your
don't change the array directly. It would be best if you defined your
accessors an returning NSArray.
Cheers, Anjo