I am developing an application in cakephp. I need to get id's of all the rows that have been updated using updateAll() function in cakephp. Any suggestions would be highly appreciated. Thanx..
Is this what i should do in my App Model
class AppModel extends Model {
var $infos = array();
function updateAll($fields, $conditions = true) {
$this->$infos = $this->find('all', array('conditions' => $conditions));
$return = parent::updateAll($fields, $conditions);
$this->afterUpdateAll();
return $return;
}
function afterUpdateAll(){
foreach ($this->$infos as $info) {
//do something
}
}
}
Will this work..?