Tuesday, December 4, 2012

Returning false in beforeDelete kills deleteAll?

When deleting a record, I'm testing to see if a condition is true or false, and based on the result, procede with the deletion or return from it.

The problem is that "return false" stops deleteAll completely. My understanding was that deleteAll would simply move along to the next record.

Is this a bug, or am I missing something?

--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate