DeleteAll Cakephp 2

[Solved] DeleteAll Cakephp 2 | Php Frameworks Cakephp - Code Explorer | yomemimo.com
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

Answers related to deleteAll cakephp 2

Code Explorer Popular Question For Php Frameworks Cakephp