public function onUnsafeAttribute($name, $value) { if (YII_DEBUG) { Yii::trace("Failed to set unsafe attribute '{$name}' in '" . get_class($this) . "'.", __METHOD__); } }