mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 00:55:01 +00:00
Partage d'export enregistré et génération asynchrone des exports
This commit is contained in:
@@ -12,15 +12,16 @@ declare(strict_types=1);
|
||||
namespace Chill\PersonBundle\Repository\AccompanyingPeriod;
|
||||
|
||||
use Chill\PersonBundle\Entity\AccompanyingPeriod\Origin;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
final readonly class OriginRepository
|
||||
/**
|
||||
* @extends ServiceEntityRepository<Origin>
|
||||
*/
|
||||
final class OriginRepository extends ServiceEntityRepository
|
||||
{
|
||||
private EntityRepository $repository;
|
||||
|
||||
public function __construct(EntityManagerInterface $entityManager)
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
$this->repository = $entityManager->getRepository(Origin::class);
|
||||
parent::__construct($registry, Origin::class);
|
||||
}
|
||||
}
|
||||
|
@@ -12,8 +12,9 @@ declare(strict_types=1);
|
||||
namespace Chill\PersonBundle\Repository;
|
||||
|
||||
use Chill\PersonBundle\Entity\MaritalStatus;
|
||||
use Doctrine\Persistence\ObjectRepository;
|
||||
|
||||
interface MaritalStatusRepositoryInterface
|
||||
interface MaritalStatusRepositoryInterface extends ObjectRepository
|
||||
{
|
||||
public function find($id): ?MaritalStatus;
|
||||
|
||||
|
Reference in New Issue
Block a user