Permalink
Browse files

CActiveRecordBehavior::beforeSave() needs event parameter.

  • Loading branch information...
1 parent 3e0c14d commit 6659087683b11bf9cc903cecb2e913c960ac88f0 @ametad ametad committed May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/OwnerBehavior.php
View
2 components/OwnerBehavior.php
@@ -27,7 +27,7 @@ public function beforeValidate($on) {
return true;
}
- public function beforeSave() {
+ public function beforeSave($on) {
if(isset($this->owner->tableSchema->columns[$this->lastChangeColumn]))
$this->owner->{$this->lastChangeColumn} = Yii::app()->user->id;

0 comments on commit 6659087

Please sign in to comment.