Answers for "deleteAll cakephp 2"

PHP
1

deleteAll cakephp 2

$obj_CustomerMobile = ClassRegistry::init('Customer.CustomerMobile');

$obj_CustomerMobile->deleteAll(
  array(
    'CustomerMobile.customer_id' => $id
  ), false
);
Posted by: Guest on October-12-2021
0

deleteall in cakephp

// Delete all the spam
function destroySpam()
{
    return $this->deleteAll(['is_spam' => true]);
}
Posted by: Guest on May-04-2021

Browse Popular Code Answers by Language