suppose the following code:
Car car1 = new Car();
car1.make = "Toyota";
car1.model = "Prius";
car1.available = true;
car1.location = new GeoPoint( 32.800755, -96.816140 );
If the car1 object get deleted from Car data object do the related new geopoint will be removed from Default category? like the garbage collector in programming language
Hi Mousa,
No, the relations are not deleted when you delete a parent object.
So the answer to your question is no - the GeoPoint won’t be removed from Default category.
Regards,
Sergey
Hi
I think if it is removed automatically will be better since after owner object get deleted there is no reason to keep it. this way many geopoints will store in the geoservice section. I will first delete the geopint then delete the Table record.
Regards,
Mousa
The relation may be not only “ownership”. So in many other cases automatic removal of related objects isn’t expected.
And yes, if you need this behaviour - you should remove them manually.