public function removeConstraint($fieldName, $constraintName)
    {
        if ($constraint = $this->getConstraint($fieldName, $constraintName)) {
            if ($this->form) {
                $constraint->removeParsley();
            }
            $class = get_class($constraint);
            unset($this->constraints[$fieldName][$class]);
            unset($constraint);
        }

        return $this;
    }
public function removeConstraint($fieldName, $constraintName)
    {
        if ($constraint = $this->getConstraint($fieldName, $constraintName)) {
            if ($this->form) {
                $constraint->removeParsley();
            }
            $class = get_class($constraint);
            unset($this->constraints[$fieldName][$class]);
            unset($constraint);
        }

        return $this;
    }
public function removeConstraint ( $ fieldName , $ constraintName ) { if ( $ constraint = $ this -> getConstraint ( $ fieldName , $ constraintName ) ) { if ( $ this -> form ) { $ constraint -> removeParsley ( ) ; } $ class = get_class ( $ constraint ) ; unset ( $ this -> constraints [ $ fieldName ] [ $ class ] ) ; unset ( $ constraint ) ; } return $ this ; }
remove a constraint from a field

@param string $field - name of the field to have a constraint removed from
@param string $constraintName - class name of constraint
@return $this
remove a constraint from a field