$robot = Robot::findFirst(1);
$data = ['name' => 'Tom'];
$robot->update($data);
Class Robot extends \Phalcon\Mvc\Model
{
public function afterUpdate() {
// how to get the updated data here ?
}
}
$robot = Robot::findFirst(1);
$data = ['name' => 'Tom'];
$robot->update($data);
Class Robot extends \Phalcon\Mvc\Model
{
public function afterUpdate() {
// how to get the updated data here ?
}
}