public function setDirty($property, $isDirty = true)
    {
        if ($isDirty === false) {
            unset($this->_dirty[$property]);

            return $this;
        }

        $this->_dirty[$property] = true;
        unset($this->_errors[$property], $this->_invalid[$property]);

        return $this;
    }
public function setDirty($property, $isDirty = true)
    {
        if ($isDirty === false) {
            unset($this->_dirty[$property]);

            return $this;
        }

        $this->_dirty[$property] = true;
        unset($this->_errors[$property], $this->_invalid[$property]);

        return $this;
    }
public function setDirty ( $ property , $ isDirty = true ) { if ( $ isDirty === false ) { unset ( $ this -> _dirty [ $ property ] ) ; return $ this ; } $ this -> _dirty [ $ property ] = true ; unset ( $ this -> _errors [ $ property ] , $ this -> _invalid [ $ property ] ) ; return $ this ; }
Sets the dirty status of a single property.

@param string $property the field to set or check status for
@param bool $isDirty true means the property was changed, false means
it was not changed. Defaults to true.
@return $this
Sets the dirty status of a single property .