I am implementing a Google App Engine based Web Application. The app uses ndb and there are two entities (say A and B) with a one to many relationship implemented via this property in the A class model
bObjects = ndb.KeyProperty(repeated=True);
I have an instance of A (a1) in relationship with three instance of B (b1,b2,b3) I am trying to delete b2. To this end I am trying to remove it from the relationship with a1 in this way
a1.bObjects.remove(b2.key)
the command is executed but the element is not removed. What am I doing wrong?
a1.put()
aftera1.bObjects.remove(b2.key)
? – Mihail Russu