Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[5.2] Query Builder - Allow “on” clauses on cross joins#13159

Merged
taylorotwell merged 1 commit into
laravel:5.2from
raphaelsaunier:feature/cross-join-with-on-clause
Apr 14, 2016
Merged

[5.2] Query Builder - Allow “on” clauses on cross joins#13159
taylorotwell merged 1 commit into
laravel:5.2from
raphaelsaunier:feature/cross-join-with-on-clause

Conversation

@raphaelsaunier
Copy link
Copy Markdown
Contributor

See: #12950 (comment)

In that PR, I mistakenly assumed that cross joins never accepted “on” clauses, but it turns out that they are supported, and that some people do use them.

This PR includes a fix as well as two tests to cover this use case.

@taylorotwell taylorotwell merged commit 93e41ea into laravel:5.2 Apr 14, 2016
* @return \Illuminate\Database\Query\Builder|static
*/
public function crossJoin($table)
public function crossJoin($table, $first = null, $operator = null, $second = null)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incorrrect phpdoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants