• 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
Re: Lost of Object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lost of Object?


  • Subject: Re: Lost of Object?
  • From: Mark Morris <email@hidden>
  • Date: Tue, 28 Feb 2006 20:06:14 -0600

Jim,

Is this a typo?



i have a flattened relationship and when i try to do "return opportunity.company().containsObject(companyItem);" it would give a java.lang.NullPointerException error.


Is is supposed to be opportunity.companies(), or opportunity.companys ()? This should be a to-many relationship, returning an NSArray, not a company object. By convention, the relationship name is plural, and EOModeler will automatically give it a name ending in an "s". If this isn't the method you intended, that could be the source of your error.


Regards,
Mark
_______________________________________________
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


References: 
 >Lost of Object? (From: Jim Wong <email@hidden>)
 >Re: Lost of Object? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Lost of Object?
  • Previous by thread: Re: Lost of Object?
  • Index(es):
    • Date
    • Thread