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')