Hello,

Say I have a one-to-many relationship between 'Father' and 'Son'
modeled with a reference property on the Son entity.  After fetching
all sons of a father, are the father references of those sons
prepopulated, or will they also be fetched?  Illustrated in code...

class Father(db.Model):
  name = db.StringProperty()

class Son(db.Model):
  father = db.ReferenceProperty(Father)

father = Father.get_by_key_name(some_key)  # DataStore access
sons = father.son_set.fetch(1000)  # DataStore access
for son in sons:
  logging.info(son.father.name)  # DataStore access???

On a side note, I could figure this out myself if there were some way
to log datastore access.  Have I looked over some way to enabled this
sort of logging?

Thanks,
Jeff



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to