Exemplo n.º 1
0
 /**
  * @return DBTransaction
  **/
 public function setDB(DB $db)
 {
     if ($this->isStarted()) {
         throw new WrongStateException('transaction already started, can not switch to another db');
     }
     return parent::setDB($db);
 }
Exemplo n.º 2
0
 public function __construct(DB $db)
 {
     parent::__construct($db);
     $this->queue = new Queue();
 }