1
0
mirror of synced 2024-12-14 23:26:04 +03:00

fixed references

This commit is contained in:
zYne 2006-11-29 22:12:43 +00:00
parent 6480503bce
commit ece1833941

View File

@ -76,12 +76,12 @@ abstract class Doctrine_Configurable {
break; break;
case Doctrine::ATTR_LOCKMODE: case Doctrine::ATTR_LOCKMODE:
if($this instanceof Doctrine_Connection) { 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."); throw new Doctrine_Exception("Couldn't set lockmode. There are transactions open.");
} elseif($this instanceof Doctrine_Manager) { } elseif($this instanceof Doctrine_Manager) {
foreach($this as $connection) { 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."); throw new Doctrine_Exception("Couldn't set lockmode. There are transactions open.");
} }
} else { } else {