mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:14:04 +00:00
Fix PDO serialization exception when queueing tenant creation
This commit is contained in:
parent
01f080450d
commit
0718a3be9d
4 changed files with 33 additions and 23 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