diff --git a/Privacy/PrivacyEventSubscriber.php b/Privacy/PrivacyEventSubscriber.php index 9af711ed9..b6cc50e54 100644 --- a/Privacy/PrivacyEventSubscriber.php +++ b/Privacy/PrivacyEventSubscriber.php @@ -25,6 +25,7 @@ namespace Chill\PersonBundle\Privacy; use Psr\Log\LoggerInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; +use Chill\PersonBundle\Entity\Person; class PrivacyEventSubscriber implements EventSubscriberInterface { @@ -74,7 +75,10 @@ class PrivacyEventSubscriber implements EventSubscriberInterface ); if ($event->hasPersons()) { - $involved['persons'] = $event->getPersons(); + $involved['persons'] = \array_map( + function(Person $p) { return $p->getId(); }, + $event->getPersons() + ); } $this->logger->notice(