2021-03-29 13:58:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Repository\Blog;
|
|
|
|
|
|
|
|
use App\Entity\Blog\Post;
|
|
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
|
|
use Doctrine\Persistence\ManagerRegistry;
|
2021-03-29 22:45:51 +02:00
|
|
|
use App\Core\Manager\EntityManager;
|
2021-03-29 13:58:05 +02:00
|
|
|
|
|
|
|
class PostRepository extends ServiceEntityRepository
|
|
|
|
{
|
|
|
|
public function __construct(ManagerRegistry $registry)
|
|
|
|
{
|
|
|
|
parent::__construct($registry, Post::class);
|
|
|
|
}
|
2021-03-29 22:45:51 +02:00
|
|
|
|
|
|
|
public function getEm()
|
|
|
|
{
|
|
|
|
return $this->getEntityManager();
|
|
|
|
}
|
2021-03-29 13:58:05 +02:00
|
|
|
}
|