21 lines
443 B
PHP
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();
|
|
}
|
|
}
|