Example #1
0
 public function events()
 {
     return array_merge(parent::events(), array('onBeforeSave' => 'beforeSave'));
 }
 public function events()
 {
     return array_merge(parent::events(), array('onAfterSave' => 'afterSave'));
 }