private function setLeftJoin($table, $field, $parentField, $alias, $parentAlias, $withWhere = false)
    {
        if (!in_array($alias, $this->tables)) {
            $condition = $this->getFullFieldName($field, $alias).' = '.$this->getFullFieldName($parentField, $parentAlias);
            $this->queryBuilder->leftJoin($table, $alias, 'WITH', $condition);
            if ($withWhere) {
                $this->queryBuilder->andWhere($condition);
            }
            $this->tables[] = $alias;
        }
    }
private function setLeftJoin($table, $field, $parentField, $alias, $parentAlias, $withWhere = false)
    {
        if (!in_array($alias, $this->tables)) {
            $condition = $this->getFullFieldName($field, $alias).' = '.$this->getFullFieldName($parentField, $parentAlias);
            $this->queryBuilder->leftJoin($table, $alias, 'WITH', $condition);
            if ($withWhere) {
                $this->queryBuilder->andWhere($condition);
            }
            $this->tables[] = $alias;
        }
    }
private function setLeftJoin ( $ table , $ field , $ parentField , $ alias , $ parentAlias , $ withWhere = false ) { if ( ! in_array ( $ alias , $ this -> tables ) ) { $ condition = $ this -> getFullFieldName ( $ field , $ alias ) . ' = ' . $ this -> getFullFieldName ( $ parentField , $ parentAlias ) ; $ this -> queryBuilder -> leftJoin ( $ table , $ alias , 'WITH' , $ condition ) ; if ( $ withWhere ) { $ this -> queryBuilder -> andWhere ( $ condition ) ; } $ this -> tables [ ] = $ alias ; } }
Create a left join with optional where.

@param string $table
@param string $field
@param string $parentField
@param string $alias
@param string $parentAlias
@param bool   $withWhere
Create a left join with optional where .