Hi all,
I have searched both forum and API trying to figure out why beforeSave() does not get called correctly.
I am trying to call beforeSave() on a user model with the following function:
protected function beforeSave() {
$test = '-----------------> a beforeSave';
echo Yii::trace(CVarDumper::dumpAsString($test),'test');
return parent::beforeSave();
}
Which si never displayed in the log. However, when I change the return value to false, the message will show up in the log (WebLog).
The saving of User models goes fine (when i use the parent::beforeSave()), and they get persisted, so it can not be a validation error.
Some info: Yii 1.1.7, running on Ubuntu 2.6.38-8-generic.
Yii is totally new to me, so this may be very simple.
Any help is much appreciated!
Cheers