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