OK,' just to test', I set the 'id' property in the _<MODEL_NAME> class, which is probably a big-bad thing to do, but it works, and does exactly what I needed.
Obviously NOT ideal, but unless anyone has a suggestion on a 'cleaner / propper' way to expose it, then I think it will suffice for the 'Prototype' - I'll change it in the 'production' version if it get's that far (honest) cheers, Rich On 15/03/2012, at 4:35 PM, Rich wrote: > That sounds like what I'm missing ;o) > - I haven't specifically set it, just presumed it would be available > properety as it was being returned in the JSON representation > > Is it a big no-no to expose it and make it say a read-only property, and if > so where would I do it if I'm not supposer to modify the _<MODEL_NAME> class? > > Rich > > On 15/03/2012, at 4:11 PM, Emmanuel Tote Dominguez Torres wrote: > >> Is your ID set as a class property? >> primary keys usually are not. >> >> Emmauel~ >> >> On Wed, Mar 14, 2012 at 8:33 PM, Rich <[email protected]> wrote: >> Hi guys, >> >> I can't seem to find a way to do a sort order based on the Entity objects >> Primary Key in an ERXRestFetchSpecification (the defaultSortOrdering >> specifier) >> >> I seem to be able to sort by any of the Attributes/Properties but not the PK >> (which I've called 'id') - Am I missing something glaringly obvious >> (probably) >> >> Cheers, >> Rich >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/snaduko%40gmail.com >> >> This email sent to [email protected] >> >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
