Hello,
I have two db.Models let's call it Model A and Model B.
Model B has an field "ref = db.ReferenceProperty(A)"
Now I know a db.key from a database entry in A and want to find all
database entries of B which referes to that specific entry in A.
I tried a naive approach:
# first get all entries from B
datas = db.GqlQuery("SELECT * FROM B")
#
for B in data:
# if B.ref == familarKeyFromA:
# found an entry in B who referes to A
...
But this doesn't work. I get no results. But i know that there exists
entries in B with a reference to an entry in A (familarKeyFromA).
Probably the simple "if B.ref == familarKeyFromA" doesn't work. But
how can I compare to db.key's?
Thanks a lot!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---