public function changeToInnerjoin($aliases = [])
    {
        /* @var $join Join */
        /* @var $parent Join */
        while ($aliases) {
            $alias = array_pop($aliases);
            $join = $this->tableJoinsMap[$alias];
            if (LOUTER == $join->getJoinType()) {
                $this->tableJoinsMap[$alias] = $join->demote();
                $parent = $this->tableJoinsMap[$join->getParentAlias()];
                if (INNER == $parent->getJoinType()) {
                    $aliases[] = $join->getParentAlias();
                }
            }
        }
    }