delete not deleting

Posts   
 
    
mjcastillo
User
Posts: 10
Joined: 08-Feb-2007
# Posted on: 13-Mar-2007 21:45:10   

I am trying to delete one of my entity objects and the delete call succeeds but the record is still in the DB. I am guessing that maybe it doesn't delete it because maybe I have another copy of that entity record in memory, or maybe because it is part of a relation attached to another record that I might have in memory. I have tried deleting it in many ways (calling delete on the entity object itself), calling deleteMuli on the proper collection and expression), but it's not working. It feels like there is a little bit more to understand about how deletes actually work. Can you shed some light on any caching or what might be going on here? Thank you, Mike

mjcastillo
User
Posts: 10
Joined: 08-Feb-2007
# Posted on: 14-Mar-2007 00:22:12   

Follow up on this. So when I delete it using the DeleteMulti(expression) method on a collection of the entities, it gets deleted from persistent storage, but if I do a GetMulti(expression) and iterate through the collection it will not get deleted (even though the delete method returns true). Also if I use the GetMuti(expression) method to get the collection, and then call DeleteMulti(), it does not delete the entity either. Could you explain this behavior to me so when I work with entities I have a good picture in my head about how this works. Regards, Mike