original_string: public function hasErrors($includeNested = true)
      {
          if (Hash::filter($this->_errors)) {
              return true;
          }
  
          if ($includeNested === false) {
              return false;
          }
  
          foreach ($this->_properties as $property) {
              if ($this->_readHasErrors($property)) {
                  return true;
              }
          }
  
          return false;
      }
code: public function hasErrors($includeNested = true)
      {
          if (Hash::filter($this->_errors)) {
              return true;
          }
  
          if ($includeNested === false) {
              return false;
          }
  
          foreach ($this->_properties as $property) {
              if ($this->_readHasErrors($property)) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function hasErrors ( $ includeNested = true ) { if ( Hash :: filter ( $ this -> _errors ) ) { return true ; } if ( $ includeNested === false ) { return false ; } foreach ( $ this -> _properties as $ property ) { if ( $ this -> _readHasErrors ( $ property ) ) { return true ; } } return false ; }
docstring: Returns whether this entity has errors.
  
  @param bool $includeNested true will check nested entities for hasErrors()
  @return bool
docstring_tokens: Returns whether this entity has errors .