| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function getThroughKeyForDeepRelationships(string $alias): array |
||
| 16 | { |
||
| 17 | $path = $this->related->qualifyColumn( |
||
| 18 | $this->related->getPathName() |
||
| 19 | ); |
||
| 20 | |||
| 21 | $childKey = $this->related->qualifyColumn( |
||
| 22 | "pivot_" . $this->related->getChildKeyName() |
||
| 23 | ); |
||
| 24 | |||
| 25 | return ["$path as {$alias}", "$childKey as {$alias}_pivot_id"]; |
||
| 26 | } |
||
| 28 |