From 523d307f811fca04e56e8d236b240c383cfaed14 Mon Sep 17 00:00:00 2001 From: Gregory Letellier Date: Tue, 7 Nov 2023 10:45:54 +0100 Subject: [PATCH] beautify et ajout export type connection --- src/Connection.php | 7 ++++++- src/Model.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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) {