Re: Help: a boolean attribute always saves as null
Re: Help: a boolean attribute always saves as null
- Subject: Re: Help: a boolean attribute always saves as null
- From: "Daniele Corti" <email@hidden>
- Date: Fri, 20 Apr 2007 14:43:04 +0200
2007/4/20, Lachlan Deck <email@hidden>:
Hi all,
Okay, something might have changed with the model plist (with an
update from WOLips or something) but I can't see it :-/
The data is being received via soap (and correctly applied to the
instance, as I've checked both the incoming and after setting the
value doing a valueForKey on the instance - which returns a Boolean
that is *not* null.
I've turned on adaptor logging to see what's going on. (See
bogusBooleanAttribute in sql)
However when saving the context I get:
[2007-04-20 15:42:55 EST] <WorkerThread15> === Begin Internal
Transaction
[2007-04-20 15:42:55 EST] <WorkerThread15> evaluateExpression:
<com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression:
"UPDATE
Client SET created = ?, bogusBooleanAttribute = NULL, modified = ?
WHERE id = ?" withBindings: 1:2007-02-27 16:16:28(created),
22007-04-20 15:42:55(modified), 5:59(id)>
[2007-04-20 15:42:55 EST] <WorkerThread15> === Commit Internal
Transaction
In the plist its definition is:
{
allowsNull = Y;
columnName = bogusBooleanAttribute;
externalType = TINYINT;
name = bogusBooleanAttribute;
valueClassName = NSNumber;
valueType = c;
},
mmm I don't think this is a boolean definition... open you EOModeler and check if this bogusBooleanAttribute is a boolean
Why doesn't it have a parameter like the others?
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (
This email sent to email@hidden
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden