Doctrine\DBAL\Query\QueryBuilder::rightJoin
Creates and adds a right join to the query.
<code> $qb = $conn->createQueryBuilder() ->select('u.name') ->from('users', 'u') ->rightJoin('u', 'phonenumbers', 'p', 'p.is_primary = 1'); </code>
Signature
public function rightJoin(string
$fromAlias,
[string
$join = null,
[string
$alias = null,
[string
$condition = null]]] )
Parameters
$fromAlias
— string- The alias that points to a from clause
$join
— string- The table name to join
$alias
— string- The alias of the join table
$condition
— string- The condition for the join
Returns
- QueryBuilder
- This QueryBuilder instance.