protected function getRelatedRecords($foreignTable, int ...$uids): array
    {
        /** @var QueryBuilder $queryBuilder */
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($foreignTable);
        $queryBuilder->select('*')
            ->from($foreignTable)
            ->where($queryBuilder->expr()->in('uid', $uids));
        if (isset($this->configuration['additionalWhereClause'])) {
            $queryBuilder->andWhere($this->configuration['additionalWhereClause']);
        }
        $statement = $queryBuilder->execute();

        return $this->sortByKeyInIN($statement, 'uid', ...$uids);
    }
protected function getRelatedRecords($foreignTable, int ...$uids): array
    {
        /** @var QueryBuilder $queryBuilder */
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($foreignTable);
        $queryBuilder->select('*')
            ->from($foreignTable)
            ->where($queryBuilder->expr()->in('uid', $uids));
        if (isset($this->configuration['additionalWhereClause'])) {
            $queryBuilder->andWhere($this->configuration['additionalWhereClause']);
        }
        $statement = $queryBuilder->execute();

        return $this->sortByKeyInIN($statement, 'uid', ...$uids);
    }
protected function getRelatedRecords ( $ foreignTable , int ... $ uids ) : array { /** @var QueryBuilder $queryBuilder */ $ queryBuilder = GeneralUtility :: makeInstance ( ConnectionPool :: class ) -> getQueryBuilderForTable ( $ foreignTable ) ; $ queryBuilder -> select ( '*' ) -> from ( $ foreignTable ) -> where ( $ queryBuilder -> expr ( ) -> in ( 'uid' , $ uids ) ) ; if ( isset ( $ this -> configuration [ 'additionalWhereClause' ] ) ) { $ queryBuilder -> andWhere ( $ this -> configuration [ 'additionalWhereClause' ] ) ; } $ statement = $ queryBuilder -> execute ( ) ; return $ this -> sortByKeyInIN ( $ statement , 'uid' , ... $ uids ) ; }
Return records via relation.

@param string $foreignTable The table to fetch records from.
@param int[] ...$uids The uids to fetch from table.
@return array
Return records via relation .