• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Strange behaviour KeyValueCoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Strange behaviour KeyValueCoding
      • From: Art Isbell <email@hidden>
  • Prev by Date: RE: WO Authentication
  • Next by Date: Re: NEWBIE! WO Authentication
  • Previous by thread: default D2WDisplayNumber and D2WEditNumber forma tters
  • Next by thread: Re: Strange behaviour KeyValueCoding
  • Index(es):
    • Date
    • Thread