LazyRecord\ModelTrait\RevisionModelTrait::beforeUpdate PHP Метод

beforeUpdate() публичный Метод

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