Fixed Doctrine_Record::exists() and removed final attribute since its *not* a method that is used by Doctrine internally
This commit is contained in:
parent
c71ce5cd05
commit
37b3ad1434
@ -824,8 +824,9 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
|
|||||||
* checks if record has data
|
* checks if record has data
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
final public function exists() {
|
public function exists() {
|
||||||
return $this->state !== Doctrine_Record::STATE_TCLEAN;
|
return ($this->state !== Doctrine_Record::STATE_TCLEAN &&
|
||||||
|
$this->state !== Doctrine_Record::STATE_TDIRTY);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* method for checking existence of properties and Doctrine_Record references
|
* method for checking existence of properties and Doctrine_Record references
|
||||||
|
Loading…
x
Reference in New Issue
Block a user