Commit d1085b00 authored by mahono's avatar mahono

added Doctrine_Record->isModified()

parent 3d0e985e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment