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;
    }
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;
    }
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 ; }
Returns whether this entity has errors.

@param bool $includeNested true will check nested entities for hasErrors()
@return bool
Returns whether this entity has errors .