- Work done on insert() and update() function from QueryBuilder.
- Fixed save() and saveAll() from repository - QueryBuilder can now be flushed after queries.
This commit is contained in:
1 parent
79fdabe786
commit
d1961ec807
9 files changed
+122
-44
No files matched your search
@@ -14,7 +14,7 @@ class ConnectionAdapter
|
||||
|
||||
protected AdapterInterface $adapter;
|
||||
|
||||
public PdoObject $pdo;
|
||||
protected PdoObject $pdo;
|
||||
|
||||
public function __construct(string $name = "default", array $configuration = [], bool $default = false)
|
||||
{
|
||||
@@ -54,6 +54,11 @@ class ConnectionAdapter
|
||||
{
|
||||
return $this->adapter;
|
||||
}
|
||||
|
||||
public function pdo() : PdoObject
|
||||
{
|
||||
return $this->pdo ?? $this->pdo = $this->connect()->pdo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instanciate an adapter which interact with the data source
|
||||
|
||||
Reference in new issue
Block a user