deblan.io-murph/src/Repository/Blog/PostRepository.php

22 lines
479 B
PHP

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