src/Titon/Model/Model.php
public function setValidator(Validator $validator) {
        $this->_validator = $validator;

        // Only set model events if we plan on validating
        $this->on('model', $this);

        return $this;
    }
public function setValidator(Validator $validator) {
        $this->_validator = $validator;

        // Only set model events if we plan on validating
        $this->on('model', $this);

        return $this;
    }
public function setValidator ( Validator $ validator ) { $ this -> _validator = $ validator ; // Only set model events if we plan on validating $ this -> on ( 'model' , $ this ) ; return $ this ; }
Set the validator instance.

@param \Titon\Utility\Validator $validator
@return \Titon\Model\Model
Set the validator instance .