From 37e60ca5cd6f710855c906782f4d1d4f2f331792 Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Tue, 19 Dec 2023 12:55:48 +0100 Subject: [PATCH] Update "proyect" to "project" --- src/Entity/{Proyect.php => Project.php} | 6 +++--- ...ctRepository.php => ProjectRepository.php} | 20 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) rename src/Entity/{Proyect.php => Project.php} (91%) rename src/Repository/{ProyectRepository.php => ProjectRepository.php} (63%) diff --git a/src/Entity/Proyect.php b/src/Entity/Project.php similarity index 91% rename from src/Entity/Proyect.php rename to src/Entity/Project.php index 556cb8e..421c0c2 100644 --- a/src/Entity/Proyect.php +++ b/src/Entity/Project.php @@ -3,13 +3,13 @@ namespace App\Entity; use ApiPlatform\Metadata as API; -use App\Repository\ProyectRepository; +use App\Repository\ProjectRepository; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; -#[ORM\Entity(repositoryClass: ProyectRepository::class)] +#[ORM\Entity(repositoryClass: ProjectRepository::class)] #[API\ApiResource()] -class Proyect +class Project { #[ORM\Id] #[ORM\GeneratedValue] diff --git a/src/Repository/ProyectRepository.php b/src/Repository/ProjectRepository.php similarity index 63% rename from src/Repository/ProyectRepository.php rename to src/Repository/ProjectRepository.php index 7bbcb8b..477b761 100644 --- a/src/Repository/ProyectRepository.php +++ b/src/Repository/ProjectRepository.php @@ -2,27 +2,27 @@ namespace App\Repository; -use App\Entity\Proyect; +use App\Entity\Project; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** - * @extends ServiceEntityRepository + * @extends ServiceEntityRepository * - * @method Proyect|null find($id, $lockMode = null, $lockVersion = null) - * @method Proyect|null findOneBy(array $criteria, array $orderBy = null) - * @method Proyect[] findAll() - * @method Proyect[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) + * @method Project|null find($id, $lockMode = null, $lockVersion = null) + * @method Project|null findOneBy(array $criteria, array $orderBy = null) + * @method Project[] findAll() + * @method Project[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ -class ProyectRepository extends ServiceEntityRepository +class ProjectRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { - parent::__construct($registry, Proyect::class); + parent::__construct($registry, Project::class); } // /** -// * @return Proyect[] Returns an array of Proyect objects +// * @return Project[] Returns an array of Project objects // */ // public function findByExampleField($value): array // { @@ -36,7 +36,7 @@ class ProyectRepository extends ServiceEntityRepository // ; // } -// public function findOneBySomeField($value): ?Proyect +// public function findOneBySomeField($value): ?Project // { // return $this->createQueryBuilder('p') // ->andWhere('p.exampleField = :val')