renommage de l'objet DB en Connection, suppression de la variable privée db dans le model
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Kletellier\PdoWrapper;
|
||||
|
||||
class QueryBuilder
|
||||
{
|
||||
protected ?Db $db;
|
||||
protected ?Connection $db;
|
||||
protected array $columns;
|
||||
protected array $wheres;
|
||||
protected array $orders;
|
||||
@@ -197,7 +197,7 @@ class QueryBuilder
|
||||
|
||||
private function getData(): mixed
|
||||
{
|
||||
$this->db = Db::getInstance($this->connection);
|
||||
$this->db = Connection::getInstance($this->connection);
|
||||
return $this->db->getSelectQuery($this->getQuery());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user