1
0
mirror of synced 2025-01-31 04:21:44 +03:00

added Doctrine_Record->isModified()

This commit is contained in:
mahono 2007-06-13 12:31:03 +00:00
parent 3d0e985eeb
commit d1085b0056

View File

@ -1068,6 +1068,17 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
return ($this->_state !== Doctrine_Record::STATE_TCLEAN &&
$this->_state !== Doctrine_Record::STATE_TDIRTY);
}
/**
* isModified
* returns true if this record was modified, otherwise false
*
* @return boolean
*/
public function isModified()
{
return ($this->_state === Doctrine_Record::STATE_DIRTY ||
$this->_state === Doctrine_Record::STATE_TDIRTY);
}
/**
* method for checking existence of properties and Doctrine_Record references
* @param mixed $name name of the property or reference