- Worked on support for multiple adapters based on @Table() annotation's entity
This commit is contained in:
1 parent
d01e99b18f
commit
79fdabe786
7 files changed
+47
-21
No files matched your search
@@ -16,15 +16,13 @@ class ConnectionAdapter
|
||||
|
||||
public PdoObject $pdo;
|
||||
|
||||
public function __construct(string $name = "default", array $configuration = [])
|
||||
public function __construct(string $name = "default", array $configuration = [], bool $default = false)
|
||||
{
|
||||
$this->name = $name;
|
||||
|
||||
$this->configuration = $configuration;
|
||||
|
||||
if ( $name === "default" ) {
|
||||
Ulmus::$defaultAdapter = $this;
|
||||
}
|
||||
Ulmus::registerAdapter($this, $default);
|
||||
}
|
||||
|
||||
public function resolveConfiguration() : void
|
||||
|
||||
Reference in new issue
Block a user