Tuesday, April 23, 2013

Deletion Simulation

I have a fairly large database with a lot of records related to each other and need to follow the cascades on deletion of records from various points in the site and see what would be related along the trail.

But I do not want to delete these records as then I have to go back and create them and that takes quite a bit of time even with an automated script since it cross's between Users, their Role, and their records with hasMany, belongsTo, HABTM, to other parts of the site and so on.

 

Is there a way to follow a delete thru its relations / cascade to return what would be deleted but not actually delete anything?

 

Thanks

Dave

No comments: