Core/Orm/Validation/Element/Element.php
public function sql($sql, $error) {
        if ($this->_exist) {
            array_push($this->_constraints, ['type' => self::SQL, 'value' => $sql, 'message' => $error]);
        }

        return $this;
    }
public function sql($sql, $error) {
        if ($this->_exist) {
            array_push($this->_constraints, ['type' => self::SQL, 'value' => $sql, 'message' => $error]);
        }

        return $this;
    }
public function sql ( $ sql , $ error ) { if ( $ this -> _exist ) { array_push ( $ this -> _constraints , [ 'type' => self :: SQL , 'value' => $ sql , 'message' => $ error ] ) ; } return $ this ; }
the field must valid the query
@access public
@param $sql   string[]
query => string
vars  => array (:value => field value directly added to vars)
constraint => (>,<,==,!=)
value => string
@param $error string
@return \Gcs\Framework\Core\Orm\Validation\Element\Element
@since 3.0
@package Gcs\Framework\Core\Form\Validation\Element
the field must valid the query