From 143709b6002b5c2028cf03ddb7a688a1a7524d24 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Thu, 14 Oct 2021 11:03:49 -0300 Subject: [PATCH] Replace NewsletterLink with NewsletterLinkEntity in the class Populator [MAILPOET-3816] --- lib/Config/Populator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index 192f9f6ca8..71310f6cdd 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -22,7 +22,6 @@ use MailPoet\Entities\UserFlagEntity; use MailPoet\Form\FormsRepository; use MailPoet\Mailer\MailerLog; use MailPoet\Models\Newsletter; -use MailPoet\Models\NewsletterLink; use MailPoet\Models\ScheduledTask; use MailPoet\Models\Segment; use MailPoet\Models\SendingQueue; @@ -700,7 +699,7 @@ class Populator { global $wpdb; $wpdb->query(sprintf( $query, - NewsletterLink::$_table, + $this->entityManager->getClassMetadata(NewsletterLinkEntity::class)->getTableName(), NewsletterLinkEntity::INSTANT_UNSUBSCRIBE_LINK_SHORT_CODE, NewsletterLinkEntity::UNSUBSCRIBE_LINK_SHORT_CODE ));