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;
    }