fixed references
This commit is contained in:
parent
6480503bce
commit
ece1833941
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user