Question : deleteAll cakephp 2
Answered by : vi-ly
$obj_CustomerMobile = ClassRegistry::init('Customer.CustomerMobile');
$obj_CustomerMobile->deleteAll( array( 'CustomerMobile.customer_id' => $id ), false
);
Source : | Last Update : Tue, 19 Oct 21
Question : deleteall in cakephp
Answered by : handsome-hippopotamus-6r2596v22jhe
// Delete all the spam
function destroySpam()
{ return $this->deleteAll(['is_spam' => true]);
}
Source : | Last Update : Tue, 11 May 21