public function findPendingSynchronisation()
    {
        return $this->createQueryBuilder('s')
            ->innerjoin('s.mailingList', 'm')
            ->andWhere('s.status = :pending OR s.status = :failed')
            ->setParameters([
                'pending' => Subscription::STATUS_PENDING,
                'failed' => Subscription::STATUS_FAILED,
            ])
            ->getQuery()
            ->getResult();
    }
public function findPendingSynchronisation()
    {
        return $this->createQueryBuilder('s')
            ->innerjoin('s.mailingList', 'm')
            ->andWhere('s.status = :pending OR s.status = :failed')
            ->setParameters([
                'pending' => Subscription::STATUS_PENDING,
                'failed' => Subscription::STATUS_FAILED,
            ])
            ->getQuery()
            ->getResult();
    }
public function findPendingSynchronisation ( ) { return $ this -> createQueryBuilder ( 's' ) -> innerjoin ( 's.mailingList' , 'm' ) -> andWhere ( 's.status = :pending OR s.status = :failed' ) -> setParameters ( [ 'pending' => Subscription :: STATUS_PENDING , 'failed' => Subscription :: STATUS_FAILED , ] ) -> getQuery ( ) -> getResult ( ) ; }
Finds all subscriptions pending synchronisation.

@return Subscription[]
Finds all subscriptions pending synchronisation .