Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from buhta/master
Browse files Browse the repository at this point in the history
Remove stale code for beginning transaction
  • Loading branch information
wolfy-j authored Jul 29, 2020
2 parents 525b52c + bd2e3e7 commit 771cdb1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,7 @@ public function transaction(
*/
public function begin(string $isolationLevel = null): bool
{
$driver = $this->getDriver(self::WRITE);
if ($driver instanceof Driver) {
return $driver->beginTransaction($isolationLevel);
}

return $driver->beginTransaction($isolationLevel);
return $this->getDriver(self::WRITE)->beginTransaction($isolationLevel);
}

/**
Expand Down

0 comments on commit 771cdb1

Please sign in to comment.