Use EOUtilities.faultWith..... method.
Michael Sent from my iPad On Aug 18, 2011, at 9:35, Kevin Hinkson <h...@kevinhinkson.com> wrote: > Hi, > Since the best practice is to not make primary keys class properties, how do > I then create a qualifier that is based on the primary key of an EO? > > Simple Eg: A blog site has nice, short bookmark-able URLs like > http://website.com/blog?id=5 where 5 is the primary key. When the user hits > that page then I would need to lookup the blog entry by the primary key. > > I've looked at accessing primary keys via > (http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-Primary+Keys) > but it only solves accessing the primary key for an EO you already have. > > What's the best approach in this situation? > > > — K.R.H. > > PS: I encountered WO/ERXDisplayGroup and ERXFlickrBatchNavigation for the > first time yesterday. I think I'm in love. > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/michael%40aspireauctions.com > > This email sent to mich...@aspireauctions.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com