According to the docs the explantion of 'notSave()' is
Triggered when the insert/update operation fails for any reason
and I cannot find any information about 'notSaved()' in docs(but it works )
// phalcon version 1.3.4
Class Model extends \Phalcon\Mvc\Model
{
public $id ;
public $name;
public function notSave(){
echo "calling notSave()";
}
public function notSaved(){
echo "calling notSaved()";
}
}
$model = new Model();
$model->id = 1;
$model->save(); // return false and calling notSaved();
Any one who can tell me what is the difference between notSave() and notSaved()? In this case , why model did not triigger notSave()?
Thanks!