Commit 37b3ad14 authored by zYne's avatar zYne

Fixed Doctrine_Record::exists() and removed final attribute since its *not* a...

Fixed Doctrine_Record::exists() and removed final attribute since its *not* a method that is used by Doctrine internally
parent c71ce5cd
......@@ -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
......
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