22 lines
639 B
PHP
22 lines
639 B
PHP
<?php
|
|
|
|
namespace App\Repository\Blog;
|
|
|
|
use App\Entity\Blog\Post;
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
/**
|
|
* @method Post|null find($id, $lockMode = null, $lockVersion = null)
|
|
* @method Post|null findOneBy(array $criteria, array $orderBy = null)
|
|
* @method Post[] findAll()
|
|
* @method Post[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
*/
|
|
class PostRepository extends ServiceEntityRepository
|
|
{
|
|
public function __construct(ManagerRegistry $registry)
|
|
{
|
|
parent::__construct($registry, Post::class);
|
|
}
|
|
}
|