public function innerJoin($fromAlias, $join, $alias, $condition = null)
    {
        return $this->add('join', array(
            $fromAlias => array(
                'joinType' => 'inner',
                'joinTable' => $join,
                'joinAlias' => $alias,
                'joinCondition' => $condition
            )
        ), true);
    }
public function innerJoin($fromAlias, $join, $alias, $condition = null)
    {
        return $this->add('join', array(
            $fromAlias => array(
                'joinType' => 'inner',
                'joinTable' => $join,
                'joinAlias' => $alias,
                'joinCondition' => $condition
            )
        ), true);
    }
public function innerJoin ( $ fromAlias , $ join , $ alias , $ condition = null ) { return $ this -> add ( 'join' , array ( $ fromAlias => array ( 'joinType' => 'inner' , 'joinTable' => $ join , 'joinAlias' => $ alias , 'joinCondition' => $ condition ) ) , true ) ; }
Creates and adds a join to the query.

<code>
$qb = $conn->createQueryBuilder()
->select('u.name')
->from('users', 'u')
->innerJoin('u', 'phonenumbers', 'p', 'p.is_primary = 1');
</code>

@param string $fromAlias The alias that points to a from clause.
@param string $join The table name to join.
@param string $alias The alias of the join table.
@param string $condition The condition for the join.

@return \Doctrine\DBAL\Query\QueryBuilder This QueryBuilder instance.
Creates and adds a join to the query .