예제 #1
0
 public function getWebhookQueues(Webhook $webhook)
 {
     /** @var \Mautic\WebhookBundle\Entity\WebhookQueueRepository $queueRepo */
     $queueRepo = $this->getQueueRepository();
     $queues = $queueRepo->getEntities(['iterator_mode' => true, 'start' => $this->webhookStart, 'limit' => $this->webhookLimit, 'orderBy' => 'e.dateAdded', 'filter' => ['force' => [['column' => 'IDENTITY(e.webhook)', 'expr' => 'eq', 'value' => $webhook->getId()]]]]);
     return $queues;
 }
 /**
  * {@inheritDoc}
  */
 public function __toString()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', array());
     return parent::__toString();
 }