deleteall in cakephp code example
Example: deleteall in cakephp
// Delete all the spam
function destroySpam()
{
return $this->deleteAll(['is_spam' => true]);
}
// Delete all the spam
function destroySpam()
{
return $this->deleteAll(['is_spam' => true]);
}