- 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:
Dave Mc Nicoll committed 2020-02-17 08:23:41 -05:00
1 parent 79fdabe786
commit d1961ec807
9 files changed
+122 -44

No files matched your search

+6 -1
View File
@@ -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