| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class BelongsToMany extends IlluminateBelongsToMany |
||
| 13 | { |
||
| 14 | use IsAranguentRelation; |
||
| 15 | use InteractsWithPivotTable; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Add the constraints for a relationship query on the same table. |
||
| 19 | * |
||
| 20 | * @param \Illuminate\Database\Eloquent\Builder<TRelatedModel> $query |
||
| 21 | * @param \Illuminate\Database\Eloquent\Builder<TDeclaringModel> $parentQuery |
||
| 22 | * @param array|mixed $columns |
||
| 23 | * @return \Illuminate\Database\Eloquent\Builder<TRelatedModel> |
||
| 24 | */ |
||
| 25 | public function getRelationExistenceQueryForSelfJoin(Builder $query, Builder $parentQuery, $columns = ['*']) |
||
| 38 |