Hello,

I hadn't used referenceproperty much before in my applications, but
have cause to use it now, and the behaviour of it is really confusing
me.

I have an entity with a reference to a second entity.

>From the documentation I believe I should be able to say something
like:

x.entityb_set

to retrieve all instances of model entityb that reference x.

This works, but as soon as I do an appcfg.py update of my application,
it stops working. It's like for the existing data, the application has
forgotten the references. I get the error:

AttributeError: 'ModelA' object has no attribute 'modelb_set'

(I have replaced the model names here)

If I delete the data in my datastore and recreate these entities, it
works. Until I do another update, when again I get this error.

Why would it behave like this? It's frustrating me no end. If it makes
a difference, these models are extending from search.SearchableModel.

Thanks for any help!

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