| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function get(): Collection |
||
| 38 | { |
||
| 39 | $model = $this->db->create($this->table); |
||
| 40 | $relations = $this->relations; |
||
| 41 | $this->relations = []; |
||
| 42 | return Collection::fromIterable($this->fetchAllAssociative()) |
||
| 43 | ->map(static fn($value): Model => ($model)->setProperties($value)->with($relations)->setLoaded()); |
||
| 44 | } |
||
| 53 | } |