i have a fancier new impl coming that actually looks at the generic type declaration of the return type of to-many relationship methods ...
On May 20, 2011, at 8:42 AM, Mike Schrag wrote: >>> Now, the problem is that the "commits" array is always empty in the >>> response, even if I pass an array with two commits in them. I found out >>> that the problem is because a commit have a "id" attribute, so ERRest try >>> to find an object with this id. So I removed "id" from the request just to >>> see how far it will go, and I'm getting those: >> you can set a new ERXRestFormatDelegate on the json format to redefine what >> the "id" key is ... we should probably convert that over to be a property >> lookup in the ERXRestFormatDelegate constructor. >> >>> What do I need to do in my class so that the descriptor returns a >>> IndexedPropertyDescriptor instead of PropertyDescriptor? Both GHPayload >>> and GHCommit have getters starting with "get" (I thought the problem was >>> there, before I didn't have any "get" in from the getters name). >> indexed properties aren't supported in the public wonder version .... try on >> my repo and see if it behaves differently? > actually, i think you only get indexed property descriptors if you explicitly > declare your descriptors ... that said, i thought there was special cased > code for dealing with Object.class, that it just ignores the fact that it > doesn't know what keys are available ... i'll tinker with it. > > ms _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
