[google-appengine] Re: Simple question about ReferenceProperty collections

2008-10-20 Thread Alex Vartan
get will only return a single object as far as I know. I want to fetch all of them. So must I use somelist = theObject.subCategories.fetch() or will somelist = [theObject.subCategories] work as well, explicitly assigning somelist as a list. On Oct 20, 9:33 am, djidjadji [EMAIL PROTECTED] wrote:

[google-appengine] Re: Simple question about ReferenceProperty collections

2008-10-20 Thread Arun Shanker Prasad
The theObject.subCategories will just be a query object, you will need to perform a fetch on it to get the values. As far as I can tell, when you have a one to one relation, the child.parent will return the parent object, if its a ReferenceProperty. But parent.child.fetch is needed.. On Oct 20,