Re: classDescriptionForDestinationKey returning Object instead of the good class
Re: classDescriptionForDestinationKey returning Object instead of the good class
- Subject: Re: classDescriptionForDestinationKey returning Object instead of the good class
- From: Mike Schrag <email@hidden>
- Date: Fri, 20 May 2011 09:37:17 -0400
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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
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