Changes
Title
unchanged
Debugging CActiveRecord failed save() attempts
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
validation, active record, debug
Content
unchanged
[...]
```php
Yii::log("errors saving SomeModel: " . var_export($someModelObject->getErrors(), true), CLogger::LEVEL_WARNING, __METHOD__);
```
Where $someModelObject is the model you've just tried to save(), and which is of type SomeModel.
Examine you're target output and solve the problem(s).