public function findByIds($ids)
    {
        if (!is_array($ids)) {
            $ids = explode(',', $ids);
        }

        return $this->createQueryBuilder('ml')
            ->andWhere('ml.id IN (:ids)')
            ->setParameter('ids', $ids)
            ->getQuery()
            ->getResult();
    }
public function findByIds($ids)
    {
        if (!is_array($ids)) {
            $ids = explode(',', $ids);
        }

        return $this->createQueryBuilder('ml')
            ->andWhere('ml.id IN (:ids)')
            ->setParameter('ids', $ids)
            ->getQuery()
            ->getResult();
    }
public function findByIds ( $ ids ) { if ( ! is_array ( $ ids ) ) { $ ids = explode ( ',' , $ ids ) ; } return $ this -> createQueryBuilder ( 'ml' ) -> andWhere ( 'ml.id IN (:ids)' ) -> setParameter ( 'ids' , $ ids ) -> getQuery ( ) -> getResult ( ) ; }
Find the mailinglist by an array of IDs

@param array|string $ids
@return MailingList[]
Find the mailinglist by an array of IDs