framework/Dbal/Query.php
public function join($table, $on, $type = 'full', $alias = '')
    {
        if (!isset($this->joins)) {
            $this->joins = [];
        }
        $join = [
            'table' => $this->trimName($table),
            'on' => $on,
            'type' => $type,
        ];
        if (!empty($alias)) {
            $join['alias'] = $this->trimName($alias);
        }
        $this->joins = array_merge($this->joins, [$join]);
        return $this;
    }
public function join($table, $on, $type = 'full', $alias = '')
    {
        if (!isset($this->joins)) {
            $this->joins = [];
        }
        $join = [
            'table' => $this->trimName($table),
            'on' => $on,
            'type' => $type,
        ];
        if (!empty($alias)) {
            $join['alias'] = $this->trimName($alias);
        }
        $this->joins = array_merge($this->joins, [$join]);
        return $this;
    }
public function join ( $ table , $ on , $ type = 'full' , $ alias = '' ) { if ( ! isset ( $ this -> joins ) ) { $ this -> joins = [ ] ; } $ join = [ 'table' => $ this -> trimName ( $ table ) , 'on' => $ on , 'type' => $ type , ] ; if ( ! empty ( $ alias ) ) { $ join [ 'alias' ] = $ this -> trimName ( $ alias ) ; } $ this -> joins = array_merge ( $ this -> joins , [ $ join ] ) ; return $ this ; }
Add one join statement to query
@param string $table
@param string $on
@param string $type
@param string $alias
@return $this
Add one join statement to query