public beginTransaction ( ) : |
||
return | the transaction initiated |
public function beginTransaction()
{
if ($this->getActive()) {
$this->_pdo->beginTransaction();
return $this->_transaction = Prado::createComponent($this->getTransactionClass(), $this);
} else {
throw new TDbException('dbconnection_connection_inactive');
}
}