Its still in dev stage so I want to make sure when its live ther are no dead records. I might just end up using the database to cascade and run it that way.
I was just hoping cake had a way to see the delete cascade.
I might work on a beforeDelete() type thing to pull the delete query and follow all relations and echo it out.
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Jeremy Burns : Class Outfit
Sent: Sunday, April 28, 2013 4:11 AM
To: cake-php@googlegroups.com
Subject: Re: Deletion Simulation
Is this for development of production? I'd say use a transaction for starters (http://book.cakephp.org/2.0/en/models/transactions.html) whether in dev or prod mode, then either commit on success or rollback on failure or in dev mode. You could then use some debug or log statements at various points to see what data is affected.
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 24 Apr 2013, at 12:32, godjen99 <godjen99@yahoo.com> wrote:
I would recommend using Unit Tests. It will take some time to set up the data (fixtures) and write the tests and such, but it will benefit your whole project too.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment