Strange behaviour KeyValueCoding
Strange behaviour KeyValueCoding
- Subject: Strange behaviour KeyValueCoding
- From: Kamal Shah <email@hidden>
- Date: Tue, 4 Mar 2003 18:32:04 +0530
I have an entity called SysQuery which has a to one
relationship(sysEntity) to an entity called SysEntity. When I fetch all
objects for SysQuery, I have no problem but the moment I try to fetch
objects in which the key "sysEntity" matches a SysEntity object
(fetched from the database say the SysEntity object corresponding to
the entity SysUsr), I get an exception:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException:
valueForKey(): lookup of unknown key: 'usrId'. This class does not have
an instance variable of the name usrId or _usrId, nor a method of the
name usrId, _usrId, getUsrId, or _getUsrId
Now, the usrId attribute is actually an attribute in the entity SysUsr!!
Any clue as to what might be wrong?
Thanks
Kamal
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.