mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 23:34:03 +00:00
Fix PDO serialization exception (#289)
* Fix PDO serialization exception when queueing tenant creation * Apply fixes from StyleCI * Fix $this->database() calls
This commit is contained in:
parent
01f080450d
commit
95ee295da1
4 changed files with 36 additions and 27 deletions
|
|
@ -238,7 +238,7 @@ class DatabaseManager
|
|||
$databaseManager = $this->app[$databaseManagers[$driver]];
|
||||
|
||||
if ($connectionName !== 'tenant' && $databaseManager instanceof CanSetConnection) {
|
||||
$databaseManager->setConnection($this->database->connection($connectionName));
|
||||
$databaseManager->setConnection($connectionName);
|
||||
}
|
||||
|
||||
return $databaseManager;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue