Use doctrine for latest post fetching

[MAILPOET-2899]
This commit is contained in:
Pavel Dohnal
2020-05-27 09:49:19 +02:00
committed by Veljko V
parent 7b0c5e61fe
commit c63c49af89
6 changed files with 78 additions and 35 deletions

View File

@ -0,0 +1,15 @@
<?php
namespace MailPoet\Newsletter;
use MailPoet\Doctrine\Repository;
use MailPoet\Entities\NewsletterPostEntity;
/**
* @extends Repository<NewsletterPostEntity>
*/
class NewsletterPostsRepository extends Repository {
protected function getEntityClassName() {
return NewsletterPostEntity::class;
}
}