src/xPDO/Om/xPDOObject.php
public function removeValidationRules($field = null, array $rules = array()) {
        if (!$this->_validationLoaded) $this->_loadValidation();
        if (empty($rules) && is_string($field)) {
            unset($this->_validationRules[$this->getField($field)]);
        } elseif (empty($rules) && is_null($field)) {
            $this->_validationRules = array();
        } elseif (is_array($rules) && !empty($rules) && is_string($field)) {
            $field = $this->getField($field);
            foreach ($rules as $name) {
                unset($this->_validationRules[$field][$name]);
            }
        }
    }
public function removeValidationRules($field = null, array $rules = array()) {
        if (!$this->_validationLoaded) $this->_loadValidation();
        if (empty($rules) && is_string($field)) {
            unset($this->_validationRules[$this->getField($field)]);
        } elseif (empty($rules) && is_null($field)) {
            $this->_validationRules = array();
        } elseif (is_array($rules) && !empty($rules) && is_string($field)) {
            $field = $this->getField($field);
            foreach ($rules as $name) {
                unset($this->_validationRules[$field][$name]);
            }
        }
    }
public function removeValidationRules ( $ field = null , array $ rules = array ( ) ) { if ( ! $ this -> _validationLoaded ) $ this -> _loadValidation ( ) ; if ( empty ( $ rules ) && is_string ( $ field ) ) { unset ( $ this -> _validationRules [ $ this -> getField ( $ field ) ] ) ; } elseif ( empty ( $ rules ) && is_null ( $ field ) ) { $ this -> _validationRules = array ( ) ; } elseif ( is_array ( $ rules ) && ! empty ( $ rules ) && is_string ( $ field ) ) { $ field = $ this -> getField ( $ field ) ; foreach ( $ rules as $ name ) { unset ( $ this -> _validationRules [ $ field ] [ $ name ] ) ; } } }
Remove one or more validation rules from this instance.

@param string $field An optional field name to remove rules from. If not
specified or null, all rules from all columns will be removed.
@param array $rules An optional array of rule names to remove if a single
field is specified.  If $field is null, this parameter is ignored.
Remove one or more validation rules from this instance .