From 775e861f1eb3f0ac2125fae45c1fa3c77427e074 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 24 May 2007 13:01:58 +0000 Subject: [PATCH] --- lib/Doctrine/Record.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index ddc2d64f0..de848d226 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -544,7 +544,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite if ($this->_state === Doctrine_Record::STATE_TCLEAN || $this->_state === Doctrine_Record::STATE_CLEAN) { - + $this->_modified = array(); } @@ -1554,11 +1554,15 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite public function deleteNode() { $this->getNode()->delete(); } + public function toString() + { + return Doctrine::dump(get_object_vars($this)); + } /** * returns a string representation of this object */ public function __toString() { - return Doctrine_Lib::getRecordAsString($this); + return (string) $this->_oid; } }