Fix #12.
This commit is contained in:
parent
13b36f41f7
commit
f353949e6d
|
@ -18,6 +18,7 @@ class SubscriptionsManager
|
||||||
protected $em;
|
protected $em;
|
||||||
|
|
||||||
|
|
||||||
|
// @todo Add logger
|
||||||
public function __construct(EntityManagerInterface $entityManager)
|
public function __construct(EntityManagerInterface $entityManager)
|
||||||
{
|
{
|
||||||
$this->em = $entityManager;
|
$this->em = $entityManager;
|
||||||
|
@ -81,7 +82,7 @@ class SubscriptionsManager
|
||||||
$logEvent = new SubscriptionEvent();
|
$logEvent = new SubscriptionEvent();
|
||||||
$logEvent
|
$logEvent
|
||||||
->setSubscriber($unsubscribedUser)
|
->setSubscriber($unsubscribedUser)
|
||||||
->setAction($user)
|
->setAuthor($user)
|
||||||
->setAction(SubscriptionEvent::ACTION_UNSUBSCRIBE)
|
->setAction(SubscriptionEvent::ACTION_UNSUBSCRIBE)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue