From f353949e6df4e1562465f14575a4be09c8d179e4 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 2 Jun 2015 04:52:27 +0300 Subject: [PATCH] Fix #12. --- .../Bundle/PointToolsBundle/Service/SubscriptionsManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/SubscriptionsManager.php b/src/Skobkin/Bundle/PointToolsBundle/Service/SubscriptionsManager.php index 22c8a15..f17e5cb 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Service/SubscriptionsManager.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/SubscriptionsManager.php @@ -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) ;