@@ -69,17 +69,17 @@ |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * Get single record by id |
|
| 73 | - * @param string $table |
|
| 74 | - * @param mixed $id |
|
| 75 | - */ |
|
| 72 | + * Get single record by id |
|
| 73 | + * @param string $table |
|
| 74 | + * @param mixed $id |
|
| 75 | + */ |
|
| 76 | 76 | public function getById(string $table, mixed $id): Model|null |
| 77 | 77 | { |
| 78 | 78 | $query = (new QueryBuilder($this->connection,$this->modelManager)) |
| 79 | - ->select('*') |
|
| 80 | - ->from($table, 't') |
|
| 81 | - ->where("t.id = ?") |
|
| 82 | - ->setParameter(0, $id); |
|
| 79 | + ->select('*') |
|
| 80 | + ->from($table, 't') |
|
| 81 | + ->where("t.id = ?") |
|
| 82 | + ->setParameter(0, $id); |
|
| 83 | 83 | |
| 84 | 84 | return $query->first(); |
| 85 | 85 | } |