Skip to content

Commit

Permalink
Lateral Join: Change method names to include "sub"
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakke committed Feb 15, 2024
1 parent 021acc9 commit 0d13288
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,14 +587,14 @@ public function joinSub($query, $as, $first, $operator = null, $second = null, $
}

/**
* Add a lateral join clause to the query.
* Add a lateral subquery join clause to the query.
*
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
* @param string $as
* @param string $type
* @return $this
*/
public function joinLateral($query, $as, $type = 'inner')
public function joinSubLateral($query, $as, $type = 'inner')
{
[$query, $bindings] = $this->createSub($query);

Expand All @@ -608,13 +608,13 @@ public function joinLateral($query, $as, $type = 'inner')
}

/**
* Add a lateral left join to the query.
* Add a lateral subquery left join to the query.
*
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
* @param string $as
* @return $this
*/
public function leftJoinLateral($query, $as)
public function leftJoinSubLateral($query, $as)
{
return $this->joinLateral($query, $as, 'left');
}
Expand Down

0 comments on commit 0d13288

Please sign in to comment.