src/Filter.php
public function addJoin($key, array $parameters, $joinType = null)
    {
        if ( ! is_null($joinType)) {

            if ($joinType == 'join' || stripos($joinType, 'inner') !== false) {
                $this->joinTypes[$key] = 'join';
            } elseif (stripos($joinType, 'right') !== false) {
                $this->joinTypes[$key] = 'rightJoin';
            } else {
                unset( $this->joinTypes[$key] );
            }
        }

        $this->joins[$key] = $parameters;

        return $this;
    }
public function addJoin($key, array $parameters, $joinType = null)
    {
        if ( ! is_null($joinType)) {

            if ($joinType == 'join' || stripos($joinType, 'inner') !== false) {
                $this->joinTypes[$key] = 'join';
            } elseif (stripos($joinType, 'right') !== false) {
                $this->joinTypes[$key] = 'rightJoin';
            } else {
                unset( $this->joinTypes[$key] );
            }
        }

        $this->joins[$key] = $parameters;

        return $this;
    }
public function addJoin ( $ key , array $ parameters , $ joinType = null ) { if ( ! is_null ( $ joinType ) ) { if ( $ joinType == 'join' || stripos ( $ joinType , 'inner' ) !== false ) { $ this -> joinTypes [ $ key ] = 'join' ; } elseif ( stripos ( $ joinType , 'right' ) !== false ) { $ this -> joinTypes [ $ key ] = 'rightJoin' ; } else { unset ( $ this -> joinTypes [ $ key ] ) ; } } $ this -> joins [ $ key ] = $ parameters ; return $ this ; }
Adds a query join to be added after all parameters are applied

@param string $key           identifying key, used to prevent duplicates
@param array  $parameters
@param string $joinType      'inner', 'right', defaults to left join
@return $this
Adds a query join to be added after all parameters are applied