private function getParentJoinsWhereClause(): array
    {
        $result = [];
        foreach ($this->getParentJoins() as $name => $conditions) {
            $result = array_merge($result, $conditions);

            $this->query->leftJoinWith($name, function ($q) {
                return $q->applyOptions(['accessCheck' => false]); // disable access check on joins
            });
        }

        return $result;
    }
private function getParentJoinsWhereClause(): array
    {
        $result = [];
        foreach ($this->getParentJoins() as $name => $conditions) {
            $result = array_merge($result, $conditions);

            $this->query->leftJoinWith($name, function ($q) {
                return $q->applyOptions(['accessCheck' => false]); // disable access check on joins
            });
        }

        return $result;
    }
private function getParentJoinsWhereClause ( ) : array { $ result = [ ] ; foreach ( $ this -> getParentJoins ( ) as $ name => $ conditions ) { $ result = array_merge ( $ result , $ conditions ) ; $ this -> query -> leftJoinWith ( $ name , function ( $ q ) { return $ q -> applyOptions ( [ 'accessCheck' => false ] ) ; // disable access check on joins } ) ; } return $ result ; }
Generates parent joins conditions for where clause.

@return mixed[]
Generates parent joins conditions for where clause .