Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an entity parent be modified in Google app engine?

When I update an entity, the entity needs to change parent, is there any way to do that?

like image 742
Allendog Avatar asked Sep 23 '09 15:09

Allendog


1 Answers

The clean way, and generally the only applicable one, is to make a new entity with the new parent and everything else copied, and delete the old one. Parents become part of an entity's key, so it's definitely NOT trivial to "change" that except by this kind of approach!

like image 178
Alex Martelli Avatar answered Nov 02 '22 08:11

Alex Martelli