deblan.io-murph/src/Repository/Blog/PostRepository.php
2021-03-30 13:40:46 +02:00

21 lines
443 B
PHP

<?php
namespace App\Repository\Blog;
use App\Entity\Blog\Post;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
class PostRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Post::class);
}
public function getEm()
{
return $this->getEntityManager();
}
}