diff --git a/src/Connection.php b/src/Connection.php index c111d57..86a0377 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -217,9 +217,14 @@ class Connection { return $this->error; } - + public function getPdo() { return $this->pdo; } + + public function getDriverType() + { + return $this->type; + } } diff --git a/src/Model.php b/src/Model.php index f0ced76..20e7a5d 100644 --- a/src/Model.php +++ b/src/Model.php @@ -67,7 +67,7 @@ class Model } public function find(mixed $key): mixed - { + { $qb = $this->newQueryBuilder(); $find = $qb->find($key); if ($find !== null) {