public function beforeUpdate($args = array()) { if ($this->saveRevisionWhenUpdate) { $rev = $this->createRevision(); } return $args; }