Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subselect for Join operations #11

Open
lucas-facchini opened this issue Nov 5, 2018 · 1 comment
Open

Subselect for Join operations #11

lucas-facchini opened this issue Nov 5, 2018 · 1 comment
Assignees
Labels
Projects

Comments

@lucas-facchini
Copy link

Is there any possibility to build a query which uses a join with subselect, eg:

$t2 = $qb->table('table2')->select(array('t2.id'));
$qb->table('table1 as t1')->select()->join(array('t2' =>$2));

The code above would translate to:

select * from table1 as t1 join (select id from table2) as t2 on t2.id = t1.ref
@mario-deluna
Copy link
Member

This is currently not possible. But I've looked into it and it seems to be not that hard to implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
2.0
  
Backlog
Development

No branches or pull requests

2 participants