Softdeletable Behavior
Hey all! I was using the great little SoftDeletable behavior from the
Syrup collection (http://cake-syrup.sourceforge.net/ingredients/soft-
deletable-behavior/) for a couple of weeks and then it very abruptly
stopped working. Anybody else had an issue like this?
If I dike out this code (starting at line 91):
if ($deleted && $cascade)
{
$Model->_deleteDependent($id, $cascade);
$Model->_deleteLinks($id);
return true;
} else {
return false;
}
Then things soft delete like they are supposed to. However, I would
definitely like these methods to be called.
I'm going to continue with my (hesitant) exploration of the what
happens in these methods (part of the core) but I wanted to see if
anybody else had some sort of magic bullet for this.
Thanks!
Ian
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home