fixed lazy-connecting for transaction methods
This commit is contained in:
parent
86ec08c331
commit
56ff937833
@ -422,6 +422,8 @@ class Doctrine_Db implements Countable, IteratorAggregate, Doctrine_Adapter_Inte
|
||||
*/
|
||||
public function beginTransaction()
|
||||
{
|
||||
$this->connect();
|
||||
|
||||
$event = new Doctrine_Db_Event($this, Doctrine_Db_Event::BEGIN);
|
||||
|
||||
$this->listener->onPreBeginTransaction($event);
|
||||
@ -439,6 +441,8 @@ class Doctrine_Db implements Countable, IteratorAggregate, Doctrine_Adapter_Inte
|
||||
*/
|
||||
public function commit()
|
||||
{
|
||||
$this->connect();
|
||||
|
||||
$event = new Doctrine_Db_Event($this, Doctrine_Db_Event::COMMIT);
|
||||
|
||||
$this->listener->onPreCommit($event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user