public function addQ(Q $q)
    {
        $aliases = [];
        foreach ($this->tableJoinsMap as $key => $join) {
            if (INNER === $join->getJoinType()) {
                $aliases[] = $key;
            }
        }

        $clause = $this->_addQ($q, $this->usedTableAlias)[0];

        if ($clause) {
            $this->where->add($clause, AND_CONNECTOR);
        }

        $this->changeToInnerjoin($aliases);
    }
public function addQ(Q $q)
    {
        $aliases = [];
        foreach ($this->tableJoinsMap as $key => $join) {
            if (INNER === $join->getJoinType()) {
                $aliases[] = $key;
            }
        }

        $clause = $this->_addQ($q, $this->usedTableAlias)[0];

        if ($clause) {
            $this->where->add($clause, AND_CONNECTOR);
        }

        $this->changeToInnerjoin($aliases);
    }
public function addQ ( Q $ q ) { $ aliases = [ ] ; foreach ( $ this -> tableJoinsMap as $ key => $ join ) { if ( INNER === $ join -> getJoinType ( ) ) { $ aliases [ ] = $ key ; } } $ clause = $ this -> _addQ ( $ q , $ this -> usedTableAlias ) [ 0 ] ; if ( $ clause ) { $ this -> where -> add ( $ clause , AND_CONNECTOR ) ; } $ this -> changeToInnerjoin ( $ aliases ) ; }
]);
] ) ;