From ece1833941f0c815fa090bebf8e164df6ab709fe Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 29 Nov 2006 22:12:43 +0000 Subject: [PATCH] fixed references --- lib/Doctrine/Configurable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Configurable.php b/lib/Doctrine/Configurable.php index 736b83235..2b3a66bad 100644 --- a/lib/Doctrine/Configurable.php +++ b/lib/Doctrine/Configurable.php @@ -76,12 +76,12 @@ abstract class Doctrine_Configurable { break; case Doctrine::ATTR_LOCKMODE: if($this instanceof Doctrine_Connection) { - if($this->transaction->getState() != Doctrine_Connection_Transaction::STATE_OPEN) + if($this->transaction->getState() != Doctrine_Transaction::STATE_SLEEP) throw new Doctrine_Exception("Couldn't set lockmode. There are transactions open."); } elseif($this instanceof Doctrine_Manager) { foreach($this as $connection) { - if($connection->transaction->getState() != Doctrine_Connection_Transaction::STATE_OPEN) + if($connection->transaction->getState() != Doctrine_Transaction::STATE_SLEEP) throw new Doctrine_Exception("Couldn't set lockmode. There are transactions open."); } } else {