From f0275da6746172e7264e2d78f58522c52d6a9203 Mon Sep 17 00:00:00 2001 From: zYne Date: Fri, 27 Jul 2007 15:31:33 +0000 Subject: [PATCH] deprecated lockmode attribute --- lib/Doctrine/Configurable.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/Doctrine/Configurable.php b/lib/Doctrine/Configurable.php index 4d520dc3a..f640be49e 100644 --- a/lib/Doctrine/Configurable.php +++ b/lib/Doctrine/Configurable.php @@ -82,19 +82,6 @@ abstract class Doctrine_Configurable extends Doctrine_Object $this->setEventListener($value); break; case Doctrine::ATTR_LOCKMODE: - if ($this instanceof Doctrine_Connection) { - 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_Transaction::STATE_SLEEP) { - throw new Doctrine_Exception("Couldn't set lockmode. There are transactions open."); - } - } - } else { - throw new Doctrine_Exception("Lockmode attribute can only be set at the global or connection level."); - } break; case Doctrine::ATTR_CREATE_TABLES: throw new Doctrine_Exception("ATTR_CREATE_TABLES has been deprecated. See exporting in the first chapter of the manual.");