feat(directory) : add Contact entity with client/prospect dual ownership

This commit is contained in:
Matthieu
2026-06-22 11:42:09 +02:00
parent bf263f4c63
commit e5a64a60c4
3 changed files with 221 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace App\Module\Directory\Infrastructure\Doctrine;
use App\Module\Directory\Domain\Entity\Contact;
use App\Module\Directory\Domain\Repository\ContactRepositoryInterface;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<Contact>
*/
final class DoctrineContactRepository extends ServiceEntityRepository implements ContactRepositoryInterface
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Contact::class);
}
public function findById(int $id): ?Contact
{
return $this->find($id);
}
}