added Doctrine_Record->isModified()
This commit is contained in:
parent
3d0e985eeb
commit
d1085b0056
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user