1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Fixed Doctrine_Record::exists() and removed final attribute since its *not* a method that is used by Doctrine internally

This commit is contained in:
zYne 2006-08-25 15:21:23 +00:00
parent c71ce5cd05
commit 37b3ad1434

View File

@ -824,8 +824,9 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
* checks if record has data
* @return boolean
*/
final public function exists() {
return $this->state !== Doctrine_Record::STATE_TCLEAN;
public function exists() {
return ($this->state !== Doctrine_Record::STATE_TCLEAN &&
$this->state !== Doctrine_Record::STATE_TDIRTY);
}
/**
* method for checking existence of properties and Doctrine_Record references