src/repositories/BaseRepository.php
public function findByIds(array $ids): array
    {
        $spec = $this->createSpecification()->where(['id' => $ids]);

        return $this->findAll($spec);
    }
public function findByIds(array $ids): array
    {
        $spec = $this->createSpecification()->where(['id' => $ids]);

        return $this->findAll($spec);
    }
public function findByIds ( array $ ids ) : array { $ spec = $ this -> createSpecification ( ) -> where ( [ 'id' => $ ids ] ) ; return $ this -> findAll ( $ spec ) ; }
Selects entities from DB by given IDs.
@param string[] $ids
@return array
Selects entities from DB by given IDs .