Refactor Statistics Entities to use association

[MAILPOET-3069]
This commit is contained in:
Pavel Dohnal
2020-08-05 14:55:38 +02:00
committed by Veljko V
parent 79b26e6ace
commit c1c5885398
8 changed files with 54 additions and 33 deletions

View File

@ -102,7 +102,7 @@ class SubscribersResponseBuilder {
private function buildUnsubscribes(SubscriberEntity $subscriberEntity): array {
$unsubscribes = $this->statisticsUnsubscribesRepository->findBy([
'subscriberId' => $subscriberEntity->getId(),
'subscriber' => $subscriberEntity,
], [
'createdAt' => 'desc',
]);