public function removeConstraints($fieldName)
    {
        if ($constraints = $this->getConstraints($fieldName)) {
            foreach ($constraints as $k => $v) {
                $this->removeConstraint($fieldName, $k);
            }
            unset($this->constraints[$fieldName]);
        }

        return $this;
    }
public function removeConstraints($fieldName)
    {
        if ($constraints = $this->getConstraints($fieldName)) {
            foreach ($constraints as $k => $v) {
                $this->removeConstraint($fieldName, $k);
            }
            unset($this->constraints[$fieldName]);
        }

        return $this;
    }
public function removeConstraints ( $ fieldName ) { if ( $ constraints = $ this -> getConstraints ( $ fieldName ) ) { foreach ( $ constraints as $ k => $ v ) { $ this -> removeConstraint ( $ fieldName , $ k ) ; } unset ( $ this -> constraints [ $ fieldName ] ) ; } return $ this ; }
remove all constraints from a field

@param string $field - name of the field to have constraints removed from
@return $this
remove all constraints from a field