Refactor newsletter data factories to doctrine

[MAILPOET-3627]
This commit is contained in:
Pavel Dohnal
2021-06-02 12:35:45 +02:00
committed by Veljko V
parent 093c1c4669
commit 7bf6c44ea0
38 changed files with 282 additions and 162 deletions

View File

@@ -97,7 +97,7 @@ class WooCommercePastRevenues implements Generator {
->withPostNotificationHistoryType()
->withSegments([$subscribersListEntity])
->withCreatedAt($sentAt)
->withParentId($postNotification->id)
->withParent($postNotification)
->create();
$sentPostNotifications[] = $this->createSentEmailData($newsletter, $sentAt, $subscribersIds, $subscribersList->id);
}