From 04021ce44d1f22b7064bf3925f3fc7c0b3d1a39c Mon Sep 17 00:00:00 2001 From: Filip Horvat Date: Sun, 24 Dec 2017 11:02:22 +0100 Subject: [PATCH] remove unused params --- src/Traits/EloquentJoinTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Traits/EloquentJoinTrait.php b/src/Traits/EloquentJoinTrait.php index 8875730..06dffbd 100644 --- a/src/Traits/EloquentJoinTrait.php +++ b/src/Traits/EloquentJoinTrait.php @@ -113,7 +113,7 @@ private function performJoin($builder, $relations) $builder->leftJoin($joinQuery, function ($join) use ($relatedTableAlias, $keyRelated, $currentTable, $relatedPrimaryKey, $relatedModel) { $join->on($relatedTableAlias . '.' . $relatedPrimaryKey, '=', $currentTable . '.' . $keyRelated); - $this->leftJoinQuery($join, $relatedModel, $relatedTableAlias, $keyRelated, $currentTable, $relatedPrimaryKey); + $this->leftJoinQuery($join, $relatedModel, $relatedTableAlias); }); } elseif ($relatedRelation instanceof HasOneJoin) { $keyRelated = $relatedRelation->getForeignKey(); @@ -122,7 +122,7 @@ private function performJoin($builder, $relations) $builder->leftJoin($joinQuery, function ($join) use ($relatedTableAlias, $keyRelated, $currentTable, $relatedPrimaryKey, $relatedModel) { $join->on($relatedTableAlias . '.' . $keyRelated, '=', $currentTable . '.' . $relatedPrimaryKey); - $this->leftJoinQuery($join, $relatedModel, $relatedTableAlias, $keyRelated, $currentTable, $relatedPrimaryKey); + $this->leftJoinQuery($join, $relatedModel, $relatedTableAlias); }); } else { throw new EloquentJoinException('Only allowed relations for whereJoin, orWhereJoin and orderByJoin are BelongsToJoin, HasOneJoin');