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();
                }
            }
        }
    }
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();
                }
            }
        }
    }
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 ( ) ; } } } }
Change join type from LOUTER to INNER for all joins in aliases.

Similarly to changeToOuterJoin(), this method must ensure no join chains
containing first an outer, then an inner
join are generated.
If we are demoting {A->C} join in chain {A LOUTER B LOUTER C} then we
must demote {A->B} automatically, or
otherwise the demotion of {A->B} doesn't actually change anything in the
query results. .

@param array $aliases

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Change join type from LOUTER to INNER for all joins in aliases .