private function _setupJoins($nameParts, Meta $meta, $rootAlias = null)
    {
        if (is_null($rootAlias)) {
            $rootAlias = $this->query->getInitialAlias();
        }

        list(
            $field, $targets, $joinList, $paths,
            $meta
            ) = $this->query->setupJoins($nameParts, $meta, $rootAlias);
        $alias = end($joinList);

        return [$field, $targets, $alias, $joinList, $paths, $meta];
    }
private function _setupJoins($nameParts, Meta $meta, $rootAlias = null)
    {
        if (is_null($rootAlias)) {
            $rootAlias = $this->query->getInitialAlias();
        }

        list(
            $field, $targets, $joinList, $paths,
            $meta
            ) = $this->query->setupJoins($nameParts, $meta, $rootAlias);
        $alias = end($joinList);

        return [$field, $targets, $alias, $joinList, $paths, $meta];
    }
private function _setupJoins ( $ nameParts , Meta $ meta , $ rootAlias = null ) { if ( is_null ( $ rootAlias ) ) { $ rootAlias = $ this -> query -> getInitialAlias ( ) ; } list ( $ field , $ targets , $ joinList , $ paths , $ meta ) = $ this -> query -> setupJoins ( $ nameParts , $ meta , $ rootAlias ) ; $ alias = end ( $ joinList ) ; return [ $ field , $ targets , $ alias , $ joinList , $ paths , $ meta ] ; }
A helper method for get_order_by and get_distinct.

Note that get_ordering and get_distinct must produce same target
columns on same input, as the prefixes of get_ordering and get_distinct
must match. Executing SQL where this is not true is an error.

@param      $nameParts
@param Meta $meta
@param null $rootAlias

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>

@return array
A helper method for get_order_by and get_distinct .