original_string: public function removeConstraints($fieldName)
      {
          if ($constraints = $this->getConstraints($fieldName)) {
              foreach ($constraints as $k => $v) {
                  $this->removeConstraint($fieldName, $k);
              }
              unset($this->constraints[$fieldName]);
          }
  
          return $this;
      }
code: public function removeConstraints($fieldName)
      {
          if ($constraints = $this->getConstraints($fieldName)) {
              foreach ($constraints as $k => $v) {
                  $this->removeConstraint($fieldName, $k);
              }
              unset($this->constraints[$fieldName]);
          }
  
          return $this;
      }
code_tokens: public function removeConstraints ( $ fieldName ) { if ( $ constraints = $ this -> getConstraints ( $ fieldName ) ) { foreach ( $ constraints as $ k => $ v ) { $ this -> removeConstraint ( $ fieldName , $ k ) ; } unset ( $ this -> constraints [ $ fieldName ] ) ; } return $ this ; }
docstring: remove all constraints from a field
  
  @param string $field - name of the field to have constraints removed from
  @return $this
docstring_tokens: remove all constraints from a field