Skip to content

Commit

Permalink
remove unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
fico7489 committed Jan 19, 2018
1 parent fa3d5b3 commit 04021ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/EloquentJoinTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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');
Expand Down

0 comments on commit 04021ce

Please sign in to comment.