Hi,

I'm using a datamodel in which I do not want records to be actually
deleted. All I want is that a flag is set that the record has been
marked for deletion.

therefor I am using a beforeDelete() filter that saves the field of
the current record like this:

<?php

function beforeDelete() {
    $this->Model->saveField('delete',true);
   return false
}

?>

The return false makes sure that the record is not physically deleted.
But I would like Cake to try and delete the records from dependant
tables. It seems however that returning false in this filter stops any
further processing. Is this correct? Is there a way to avoid this
behaviour?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to