1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/manual/codes/Basic Components - Connection - Getting connection state.php
2007-02-06 14:41:00 +00:00

17 lines
434 B
PHP

<?php
switch($conn->getState()):
case Doctrine_Connection::STATE_ACTIVE:
// connection open and zero open transactions
break;
case Doctrine_Connection::STATE_ACTIVE:
// one open transaction
break;
case Doctrine_Connection::STATE_BUSY:
// multiple open transactions
break;
case Doctrine_Connection::STATE_CLOSED:
// connection closed
break;
endswitch;
?>