Can't get ERRest to include attributes along a keypath?

I show the attributes of the "invitation" relationship, but I wanted this 
filter to include attributes for "invitation.author" - I can only get the type 
and id for "author"?





        public WOActionResults inboxAction() {
                EOQualifier qual = InvitationUser.USER.eq(user());
                ERXRestFetchSpecification<InvitationUser> fetchSpec = new 
ERXRestFetchSpecification<InvitationUser>(InvitationUser.ENTITY_NAME, qual, 
null, queryFilter(), null, 25);
                ERXKeyFilter filter = ERXKeyFilter.filterWithAll();
                
filter.include(InvitationUser.INVITATION).includeAttributesAndToOneRelationships();
                return response(fetchSpec, filter);
        }






(
        {
                "id" = "1";
                "invitation" = {
                        "author" = {
                                "type" = "Person";
                                "id" = "1";
                        };
                        "status" = 
"<com.webobjects.foundation.NSKeyValueCoding$Null>";
                        "mtly" = {
                                "type" = "Mtly";
                                "id" = "27";
                        };
                        "id" = "1";
                        "active" = "true";
                        "created" = "2011-01-10 05:00:00 Etc/GMT";
                        "type" = "Invitation";
                        "name" = 
"<com.webobjects.foundation.NSKeyValueCoding$Null>";
                        "adjusted" = "2011-01-10 05:24:01 Etc/GMT";
                };
                "type" = "InvitationUser";
                "user" = {
                        "type" = "Person";
                        "id" = "1";
                };
        },
        {
                "id" = "2";
                "invitation" = {
                        "author" = {
                                "type" = "Person";
                                "id" = "1";
                        };
                        "status" = 
"<com.webobjects.foundation.NSKeyValueCoding$Null>";
                        "mtly" = {
                                "type" = "Mtly";
                                "id" = "27";
                        };
                        "id" = "1";
                        "active" = "true";
                        "created" = "2011-01-10 05:00:00 Etc/GMT";
                        "type" = "Invitation";
                        "name" = 
"<com.webobjects.foundation.NSKeyValueCoding$Null>";
                        "adjusted" = "2011-01-10 05:24:01 Etc/GMT";
                };
                "type" = "InvitationUser";
                "user" = {
                        "type" = "Person";
                        "id" = "1";
                };
        }
)

 _______________________________________________
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]

Reply via email to