brilo-example/src/Repository/Post/PostRepository.php

22 lines
535 B
PHP

<?php
declare(strict_types=1);
namespace App\Repository\Post;
use App\Entity\Database\Posts\Post;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* In case of deleting records, you must modify RefreshDatabaseCommand transaction logic
* @extends ServiceEntityRepository<Post>
*/
class PostRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Post::class);
}
}