From b201424a2a6e6410c2594e67bbc06026c6103c13 Mon Sep 17 00:00:00 2001 From: Allavena Romain Date: Fri, 18 Apr 2025 09:02:28 +0200 Subject: [PATCH] =?UTF-8?q?suppression=20entit=C3=A9s=20dupliqu=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/packages/security.yaml | 2 +- migrations/Version20241121141451.php | 38 ------- migrations/Version20241121141722.php | 40 ------- migrations/Version20241121141818.php | 31 ------ migrations/Version20241121141912.php | 32 ------ migrations/Version20241121142119.php | 34 ------ migrations/Version20241121142432.php | 31 ------ migrations/Version20241121145353.php | 32 ------ src/Entity/Annonce.php | 57 ---------- src/Entity/Competence.php | 42 ------- src/Entity/Demandeur.php | 65 ----------- src/Entity/Diplome.php | 42 ------- src/Entity/Employe.php | 35 ------ src/Entity/Entreprise.php | 87 --------------- src/Entity/Favoris.php | 52 --------- src/Entity/Formulaire.php | 36 ------ src/Entity/Liste.php | 36 ------ src/Entity/Status.php | 78 ------------- src/Entity/Utilisateur.php | 135 ----------------------- src/Entity/Verifie.php | 42 ------- src/Repository/AnnonceRepository.php | 43 -------- src/Repository/CompetenceRepository.php | 43 -------- src/Repository/DemandeurRepository.php | 43 -------- src/Repository/DiplomeRepository.php | 43 -------- src/Repository/EmployeRepository.php | 43 -------- src/Repository/EntrepriseRepository.php | 43 -------- src/Repository/FavorisRepository.php | 43 -------- src/Repository/FormulaireRepository.php | 43 -------- src/Repository/ListeRepository.php | 43 -------- src/Repository/StatusRepository.php | 43 -------- src/Repository/UtilisateurRepository.php | 43 -------- src/Repository/VerifieRepository.php | 43 -------- 32 files changed, 1 insertion(+), 1462 deletions(-) delete mode 100644 migrations/Version20241121141451.php delete mode 100644 migrations/Version20241121141722.php delete mode 100644 migrations/Version20241121141818.php delete mode 100644 migrations/Version20241121141912.php delete mode 100644 migrations/Version20241121142119.php delete mode 100644 migrations/Version20241121142432.php delete mode 100644 migrations/Version20241121145353.php delete mode 100644 src/Entity/Annonce.php delete mode 100644 src/Entity/Competence.php delete mode 100644 src/Entity/Demandeur.php delete mode 100644 src/Entity/Diplome.php delete mode 100644 src/Entity/Employe.php delete mode 100644 src/Entity/Entreprise.php delete mode 100644 src/Entity/Favoris.php delete mode 100644 src/Entity/Formulaire.php delete mode 100644 src/Entity/Liste.php delete mode 100644 src/Entity/Status.php delete mode 100644 src/Entity/Utilisateur.php delete mode 100644 src/Entity/Verifie.php delete mode 100644 src/Repository/AnnonceRepository.php delete mode 100644 src/Repository/CompetenceRepository.php delete mode 100644 src/Repository/DemandeurRepository.php delete mode 100644 src/Repository/DiplomeRepository.php delete mode 100644 src/Repository/EmployeRepository.php delete mode 100644 src/Repository/EntrepriseRepository.php delete mode 100644 src/Repository/FavorisRepository.php delete mode 100644 src/Repository/FormulaireRepository.php delete mode 100644 src/Repository/ListeRepository.php delete mode 100644 src/Repository/StatusRepository.php delete mode 100644 src/Repository/UtilisateurRepository.php delete mode 100644 src/Repository/VerifieRepository.php diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 2f23ef7..9a7f3a1 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -1,7 +1,7 @@ security: # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords password_hashers: - Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'plaintext' # à mettre en auto pour sécuriser les mdp + Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' # à mettre en auto pour sécuriser les mdp # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider providers: # used to reload user from session & other features (e.g. switch_user) diff --git a/migrations/Version20241121141451.php b/migrations/Version20241121141451.php deleted file mode 100644 index d51cde4..0000000 --- a/migrations/Version20241121141451.php +++ /dev/null @@ -1,38 +0,0 @@ -addSql('DROP SEQUENCE status_id_seq CASCADE'); - $this->addSql('DROP TABLE status'); - $this->addSql('ALTER TABLE userapp ADD is_verified BOOLEAN NOT NULL'); - $this->addSql('ALTER TABLE userapp ALTER roles SET NOT NULL'); - } - - public function down(Schema $schema): void - { - // this down() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SCHEMA public'); - $this->addSql('CREATE SEQUENCE status_id_seq INCREMENT BY 1 MINVALUE 1 START 1'); - $this->addSql('CREATE TABLE status (id INT NOT NULL, label VARCHAR(255) NOT NULL, PRIMARY KEY(id))'); - $this->addSql('ALTER TABLE userApp DROP is_verified'); - $this->addSql('ALTER TABLE userApp ALTER roles DROP NOT NULL'); - } -} diff --git a/migrations/Version20241121141722.php b/migrations/Version20241121141722.php deleted file mode 100644 index 6259ec7..0000000 --- a/migrations/Version20241121141722.php +++ /dev/null @@ -1,40 +0,0 @@ -addSql('ALTER TABLE userapp ALTER first_name DROP NOT NULL'); - $this->addSql('ALTER TABLE userapp ALTER last_name DROP NOT NULL'); - $this->addSql('ALTER TABLE userapp ALTER tel DROP NOT NULL'); - $this->addSql('ALTER TABLE userapp ALTER address DROP NOT NULL'); - $this->addSql('ALTER TABLE userapp ALTER mail DROP NOT NULL'); - } - - public function down(Schema $schema): void - { - // this down() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SCHEMA public'); - $this->addSql('ALTER TABLE userApp ALTER first_name SET NOT NULL'); - $this->addSql('ALTER TABLE userApp ALTER last_name SET NOT NULL'); - $this->addSql('ALTER TABLE userApp ALTER tel SET NOT NULL'); - $this->addSql('ALTER TABLE userApp ALTER address SET NOT NULL'); - $this->addSql('ALTER TABLE userApp ALTER mail SET NOT NULL'); - } -} diff --git a/migrations/Version20241121141818.php b/migrations/Version20241121141818.php deleted file mode 100644 index 7eb43e8..0000000 --- a/migrations/Version20241121141818.php +++ /dev/null @@ -1,31 +0,0 @@ -addSql('CREATE SCHEMA public'); - } -} diff --git a/migrations/Version20241121141912.php b/migrations/Version20241121141912.php deleted file mode 100644 index fbc5345..0000000 --- a/migrations/Version20241121141912.php +++ /dev/null @@ -1,32 +0,0 @@ -addSql('ALTER TABLE userapp ALTER is_verified DROP NOT NULL'); - } - - public function down(Schema $schema): void - { - // this down() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SCHEMA public'); - $this->addSql('ALTER TABLE userApp ALTER is_verified SET NOT NULL'); - } -} diff --git a/migrations/Version20241121142119.php b/migrations/Version20241121142119.php deleted file mode 100644 index 44746a0..0000000 --- a/migrations/Version20241121142119.php +++ /dev/null @@ -1,34 +0,0 @@ -addSql('ALTER TABLE intern ALTER cover_letter DROP NOT NULL'); - $this->addSql('ALTER TABLE intern ALTER resume DROP NOT NULL'); - } - - public function down(Schema $schema): void - { - // this down() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SCHEMA public'); - $this->addSql('ALTER TABLE intern ALTER cover_letter SET NOT NULL'); - $this->addSql('ALTER TABLE intern ALTER resume SET NOT NULL'); - } -} diff --git a/migrations/Version20241121142432.php b/migrations/Version20241121142432.php deleted file mode 100644 index 8226230..0000000 --- a/migrations/Version20241121142432.php +++ /dev/null @@ -1,31 +0,0 @@ -addSql('CREATE SCHEMA public'); - } -} diff --git a/migrations/Version20241121145353.php b/migrations/Version20241121145353.php deleted file mode 100644 index 439bd80..0000000 --- a/migrations/Version20241121145353.php +++ /dev/null @@ -1,32 +0,0 @@ -addSql('ALTER TABLE employee ALTER company_id DROP NOT NULL'); - } - - public function down(Schema $schema): void - { - // this down() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SCHEMA public'); - $this->addSql('ALTER TABLE employee ALTER company_id SET NOT NULL'); - } -} diff --git a/src/Entity/Annonce.php b/src/Entity/Annonce.php deleted file mode 100644 index dc600bb..0000000 --- a/src/Entity/Annonce.php +++ /dev/null @@ -1,57 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - - return $this; - } - - public function getTitre(): ?string - { - return $this->Titre; - } - - public function setTitre(string $Titre): static - { - $this->Titre = $Titre; - - return $this; - } - - public function getDescription(): ?string - { - return $this->Description; - } - - public function setDescription(string $Description): static - { - $this->Description = $Description; - - return $this; - } -} diff --git a/src/Entity/Competence.php b/src/Entity/Competence.php deleted file mode 100644 index ee8394b..0000000 --- a/src/Entity/Competence.php +++ /dev/null @@ -1,42 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - - return $this; - } - - public function getLibelle(): ?string - { - return $this->Libelle; - } - - public function setLibelle(string $Libelle): static - { - $this->Libelle = $Libelle; - - return $this; - } -} diff --git a/src/Entity/Demandeur.php b/src/Entity/Demandeur.php deleted file mode 100644 index fae439e..0000000 --- a/src/Entity/Demandeur.php +++ /dev/null @@ -1,65 +0,0 @@ -id; - } - - public function getLM(): ?string - { - return $this->LM; - } - - public function setLM(string $LM): static - { - $this->LM = $LM; - - return $this; - } - - public function getCV(): ?string - { - return $this->CV; - } - - public function setCV(string $CV): static - { - $this->CV = $CV; - - return $this; - } - - public function getMail(): ?string - { - return $this->Mail; - } - - public function setMail(string $Mail): static - { - $this->Mail = $Mail; - - return $this; - } -} diff --git a/src/Entity/Diplome.php b/src/Entity/Diplome.php deleted file mode 100644 index 5ca827e..0000000 --- a/src/Entity/Diplome.php +++ /dev/null @@ -1,42 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - - return $this; - } - - public function getLibelle(): ?string - { - return $this->Libelle; - } - - public function setLibelle(string $Libelle): static - { - $this->Libelle = $Libelle; - - return $this; - } -} diff --git a/src/Entity/Employe.php b/src/Entity/Employe.php deleted file mode 100644 index 1d4fa6c..0000000 --- a/src/Entity/Employe.php +++ /dev/null @@ -1,35 +0,0 @@ -id; - } - - public function getMail(): ?string - { - return $this->Mail; - } - - public function setMail(string $Mail): static - { - $this->Mail = $Mail; - - return $this; - } -} diff --git a/src/Entity/Entreprise.php b/src/Entity/Entreprise.php deleted file mode 100644 index 2807a19..0000000 --- a/src/Entity/Entreprise.php +++ /dev/null @@ -1,87 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - - return $this; - } - - public function getNom(): ?string - { - return $this->Nom; - } - - public function setNom(string $Nom): static - { - $this->Nom = $Nom; - - return $this; - } - - public function getAdresse(): ?string - { - return $this->Adresse; - } - - public function setAdresse(string $Adresse): static - { - $this->Adresse = $Adresse; - - return $this; - } - - public function getTel(): ?string - { - return $this->Tel; - } - - public function setTel(string $Tel): static - { - $this->Tel = $Tel; - - return $this; - } - - public function getMail(): ?string - { - return $this->Mail; - } - - public function setMail(string $Mail): static - { - $this->Mail = $Mail; - - return $this; - } -} diff --git a/src/Entity/Favoris.php b/src/Entity/Favoris.php deleted file mode 100644 index be05f56..0000000 --- a/src/Entity/Favoris.php +++ /dev/null @@ -1,52 +0,0 @@ -id; - } - - public function getUser(): ?UserApp - { - return $this->user; - } - - public function setUser(?UserApp $user): static - { - $this->user = $user; - return $this; - } - - public function getAnnouncement(): ?Announcement - { - return $this->announcement; - } - - public function setAnnouncement(?Announcement $announcement): static - { - $this->announcement = $announcement; - return $this; - } -} diff --git a/src/Entity/Formulaire.php b/src/Entity/Formulaire.php deleted file mode 100644 index 7a8308b..0000000 --- a/src/Entity/Formulaire.php +++ /dev/null @@ -1,36 +0,0 @@ -id; - } - - public function getDate(): ?\DateTimeInterface - { - return $this->Date; - } - - public function setDate(\DateTimeInterface $Date): static - { - $this->Date = $Date; - - return $this; - } -} diff --git a/src/Entity/Liste.php b/src/Entity/Liste.php deleted file mode 100644 index eccf868..0000000 --- a/src/Entity/Liste.php +++ /dev/null @@ -1,36 +0,0 @@ -id; - } - - public function getDate(): ?\DateTimeInterface - { - return $this->Date; - } - - public function setDate(\DateTimeInterface $Date): static - { - $this->Date = $Date; - - return $this; - } -} diff --git a/src/Entity/Status.php b/src/Entity/Status.php deleted file mode 100644 index e672f8c..0000000 --- a/src/Entity/Status.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - #[ORM\OneToMany(targetEntity: Announcement::class, mappedBy: 'status')] - private Collection $announcements; - - public function __construct() - { - $this->announcements = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - public function getLabel(): ?string - { - return $this->label; - } - - public function setLabel(string $label): static - { - $this->label = $label; - - return $this; - } - - /** - * @return Collection - */ - public function getAnnouncements(): Collection - { - return $this->announcements; - } - - public function addAnnouncement(Announcement $announcement): static - { - if (!$this->announcements->contains($announcement)) { - $this->announcements->add($announcement); - $announcement->setStatus($this); - } - - return $this; - } - - public function removeAnnouncement(Announcement $announcement): static - { - if ($this->announcements->removeElement($announcement)) { - // set the owning side to null (unless already changed) - if ($announcement->getStatus() === $this) { - $announcement->setStatus(null); - } - } - - return $this; - } -} diff --git a/src/Entity/Utilisateur.php b/src/Entity/Utilisateur.php deleted file mode 100644 index 705b358..0000000 --- a/src/Entity/Utilisateur.php +++ /dev/null @@ -1,135 +0,0 @@ -messages = new ArrayCollection(); - } - - public function getId(): ?int - { - return $this->id; - } - - public function setId(int $id): static - { - $this->id = $id; - - return $this; - } - - public function getNom(): ?string - { - return $this->Nom; - } - - public function setNom(string $Nom): static - { - $this->Nom = $Nom; - - return $this; - } - - public function getPrenom(): ?string - { - return $this->Prenom; - } - - public function setPrenom(string $Prenom): static - { - $this->Prenom = $Prenom; - - return $this; - } - - public function getTel(): ?string - { - return $this->Tel; - } - - public function setTel(string $Tel): static - { - $this->Tel = $Tel; - - return $this; - } - - public function getAdresse(): ?string - { - return $this->Adresse; - } - - public function setAdresse(string $Adresse): static - { - $this->Adresse = $Adresse; - - return $this; - } - - // Getter et setter pour la relation avec Message - /** - * @return Collection - */ - public function getMessages(): Collection - { - return $this->messages; - } - - public function addMessage(Message $message): static - { - if (!$this->messages->contains($message)) { - $this->messages[] = $message; - $message->setUtilisateur($this); - } - - return $this; - } - - public function removeMessage(Message $message): static - { - if ($this->messages->removeElement($message)) { - if ($message->getUtilisateur() === $this) { - $message->setUtilisateur(null); - } - } - - return $this; - } -} diff --git a/src/Entity/Verifie.php b/src/Entity/Verifie.php deleted file mode 100644 index fa39d14..0000000 --- a/src/Entity/Verifie.php +++ /dev/null @@ -1,42 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - - return $this; - } - - public function getLibelle(): ?string - { - return $this->Libelle; - } - - public function setLibelle(string $Libelle): static - { - $this->Libelle = $Libelle; - - return $this; - } -} diff --git a/src/Repository/AnnonceRepository.php b/src/Repository/AnnonceRepository.php deleted file mode 100644 index 776c143..0000000 --- a/src/Repository/AnnonceRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class AnnonceRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Annonce::class); - } - -// /** -// * @return Annonce[] Returns an array of Annonce objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('a') -// ->andWhere('a.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('a.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Annonce -// { -// return $this->createQueryBuilder('a') -// ->andWhere('a.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/CompetenceRepository.php b/src/Repository/CompetenceRepository.php deleted file mode 100644 index f4fbf89..0000000 --- a/src/Repository/CompetenceRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class CompetenceRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Competence::class); - } - -// /** -// * @return Competence[] Returns an array of Competence objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('c') -// ->andWhere('c.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('c.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Competence -// { -// return $this->createQueryBuilder('c') -// ->andWhere('c.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/DemandeurRepository.php b/src/Repository/DemandeurRepository.php deleted file mode 100644 index 6ef82d1..0000000 --- a/src/Repository/DemandeurRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class DemandeurRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Demandeur::class); - } - -// /** -// * @return Demandeur[] Returns an array of Demandeur objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('d') -// ->andWhere('d.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('d.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Demandeur -// { -// return $this->createQueryBuilder('d') -// ->andWhere('d.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/DiplomeRepository.php b/src/Repository/DiplomeRepository.php deleted file mode 100644 index 777400a..0000000 --- a/src/Repository/DiplomeRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class DiplomeRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Diplome::class); - } - -// /** -// * @return Diplome[] Returns an array of Diplome objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('d') -// ->andWhere('d.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('d.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Diplome -// { -// return $this->createQueryBuilder('d') -// ->andWhere('d.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/EmployeRepository.php b/src/Repository/EmployeRepository.php deleted file mode 100644 index 87ac38f..0000000 --- a/src/Repository/EmployeRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class EmployeRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Employe::class); - } - -// /** -// * @return Employe[] Returns an array of Employe objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('e') -// ->andWhere('e.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('e.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Employe -// { -// return $this->createQueryBuilder('e') -// ->andWhere('e.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/EntrepriseRepository.php b/src/Repository/EntrepriseRepository.php deleted file mode 100644 index 3d0e694..0000000 --- a/src/Repository/EntrepriseRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class EntrepriseRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Entreprise::class); - } - -// /** -// * @return Entreprise[] Returns an array of Entreprise objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('e') -// ->andWhere('e.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('e.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Entreprise -// { -// return $this->createQueryBuilder('e') -// ->andWhere('e.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/FavorisRepository.php b/src/Repository/FavorisRepository.php deleted file mode 100644 index 4b12a36..0000000 --- a/src/Repository/FavorisRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class FavorisRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Favoris::class); - } - -// /** -// * @return Favoris[] Returns an array of Favoris objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('f') -// ->andWhere('f.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('f.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Favoris -// { -// return $this->createQueryBuilder('f') -// ->andWhere('f.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/FormulaireRepository.php b/src/Repository/FormulaireRepository.php deleted file mode 100644 index f27aa6a..0000000 --- a/src/Repository/FormulaireRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class FormulaireRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Formulaire::class); - } - -// /** -// * @return Formulaire[] Returns an array of Formulaire objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('f') -// ->andWhere('f.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('f.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Formulaire -// { -// return $this->createQueryBuilder('f') -// ->andWhere('f.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/ListeRepository.php b/src/Repository/ListeRepository.php deleted file mode 100644 index 570b25f..0000000 --- a/src/Repository/ListeRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class ListeRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Liste::class); - } - -// /** -// * @return Liste[] Returns an array of Liste objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('l') -// ->andWhere('l.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('l.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Liste -// { -// return $this->createQueryBuilder('l') -// ->andWhere('l.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/StatusRepository.php b/src/Repository/StatusRepository.php deleted file mode 100644 index ea2e260..0000000 --- a/src/Repository/StatusRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class StatusRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Status::class); - } - -// /** -// * @return Status[] Returns an array of Status objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('v') -// ->andWhere('v.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('v.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Status -// { -// return $this->createQueryBuilder('v') -// ->andWhere('v.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/UtilisateurRepository.php b/src/Repository/UtilisateurRepository.php deleted file mode 100644 index df1e4c6..0000000 --- a/src/Repository/UtilisateurRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class UtilisateurRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Utilisateur::class); - } - -// /** -// * @return Utilisateur[] Returns an array of Utilisateur objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('u') -// ->andWhere('u.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('u.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Utilisateur -// { -// return $this->createQueryBuilder('u') -// ->andWhere('u.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -} diff --git a/src/Repository/VerifieRepository.php b/src/Repository/VerifieRepository.php deleted file mode 100644 index c5384d7..0000000 --- a/src/Repository/VerifieRepository.php +++ /dev/null @@ -1,43 +0,0 @@ - - */ -class VerifieRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Verifie::class); - } - -// /** -// * @return Verifie[] Returns an array of Verifie objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('v') -// ->andWhere('v.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('v.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } - -// public function findOneBySomeField($value): ?Verifie -// { -// return $this->createQueryBuilder('v') -// ->andWhere('v.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } -}