> Uh, I guess I don't really get what you're talking about, since you
 > can't use conditions in Model::del()

That is exactly what I want to be able to do.  Hence I was offering to 
make a patch to allow you to pass a set of conditions when making a 
delete.  Something like this:

   $id = 10;
   $conditions = array('Batch.owner' => array('group_a', 'group_c'));
   $this->Batch->del($id, null, $conditions);

Just as you can do with find().  This would automatically add a 
condition to the delete like this:

   DELETE FROM `batches`
   WHERE (`id` = '10')
   AND (`owner` IN ('group_a', 'group_c'))


> (unless of course you're thinking
> of Model::deleteAll(), which is new in 1.2 and still mostly uncharted
> territory). 

It sounds like deleteAll() in 1.2 solves my problem.

Regards,
Langdon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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