public function findByUids($uids, array $querySettings = ['respectSysLanguage' => false]) {
    if (is_string($uids)) {
      $uids = GeneralUtility::intExplode(',', $uids, true);
    }

    if (!empty($uids)) {
      // Create a new query.
      $query = $this->createquery();

      // Apply the passed query settings.
      $query = $this->applyQuerySettings($query, $querySettings);

      // Set the query constraints.
      $query->matching($query->in('uid', $uids));

      // Execute the query.
      $result = $query->execute();

      return $result;
    }

    return null;
  }
public function findByUids($uids, array $querySettings = ['respectSysLanguage' => false]) {
    if (is_string($uids)) {
      $uids = GeneralUtility::intExplode(',', $uids, true);
    }

    if (!empty($uids)) {
      // Create a new query.
      $query = $this->createquery();

      // Apply the passed query settings.
      $query = $this->applyQuerySettings($query, $querySettings);

      // Set the query constraints.
      $query->matching($query->in('uid', $uids));

      // Execute the query.
      $result = $query->execute();

      return $result;
    }

    return null;
  }
public function findByUids ( $ uids , array $ querySettings = [ 'respectSysLanguage' => false ] ) { if ( is_string ( $ uids ) ) { $ uids = GeneralUtility :: intExplode ( ',' , $ uids , true ) ; } if ( ! empty ( $ uids ) ) { // Create a new query. $ query = $ this -> createquery ( ) ; // Apply the passed query settings. $ query = $ this -> applyQuerySettings ( $ query , $ querySettings ) ; // Set the query constraints. $ query -> matching ( $ query -> in ( 'uid' , $ uids ) ) ; // Execute the query. $ result = $ query -> execute ( ) ; return $ result ; } return null ; }
Finds objects by multiple UIDs.

@param array|string $uids The UIDs as array or as string, seperated by `,`
@param array $querySettings The optional query settings to apply
@return \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult|null The found objects or null if no objects were found
Finds objects by multiple UIDs .