Esempio n. 1
0
 public function testGetterSetterForRecipients()
 {
     $this->assertNull($this->entity->getRecipientList());
     $list = $this->getMock('Oro\\Bundle\\NotificationBundle\\Entity\\RecipientList');
     $this->entity->setRecipientList($list);
     $this->assertEquals($list, $this->entity->getRecipientList());
 }
 /**
  * {@inheritdoc}
  */
 public function getRecipientEmails()
 {
     return $this->em->getRepository('Oro\\Bundle\\NotificationBundle\\Entity\\RecipientList')->getRecipientEmails($this->notification->getRecipientList(), $this->entity);
 }
 /**
  * {@inheritdoc}
  */
 public function getRecipientEmails()
 {
     $class = ClassUtils::getClass($this->entity);
     $ownerFieldName = $this->configProvider->hasConfig($class) ? $this->configProvider->getConfig($class)->get('owner_field_name') : null;
     return $this->em->getRepository('Oro\\Bundle\\NotificationBundle\\Entity\\RecipientList')->getRecipientEmails($this->notification->getRecipientList(), $this->entity, $ownerFieldName);
 }