Re-adding Repositories

This commit is contained in:
ASTIER Yann 2024-11-21 14:44:18 +01:00
parent ba7e152552
commit 37812be99b
12 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@ namespace App\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: AssignmentRepository::class)]
#[ORM\UniqueConstraint( #[ORM\UniqueConstraint(
columns: ['employee', 'ride'] columns: ['employee', 'ride']
)] )]

View File

@ -6,7 +6,7 @@ namespace App\Entity;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: CategoryRepository::class)]
class Category class Category
{ {
#[ORM\Id] #[ORM\Id]

View File

@ -9,7 +9,7 @@ use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\User\UserInterface;
#[ORM\Entity] #[ORM\Entity(repositoryClass: EmployeeRepository::class)]
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_EMAIL', fields: ['email'])] #[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_EMAIL', fields: ['email'])]
class Employee implements UserInterface, PasswordAuthenticatedUserInterface class Employee implements UserInterface, PasswordAuthenticatedUserInterface
{ {

View File

@ -4,7 +4,7 @@ namespace App\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: EmployeeSkillRepository::class)]
#[ORM\UniqueConstraint( #[ORM\UniqueConstraint(
columns: ['employee', 'skill'] columns: ['employee', 'skill']
)] )]

View File

@ -5,7 +5,7 @@ namespace App\Entity;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: IncidentRepository::class)]
class Incident class Incident
{ {
#[ORM\Id] #[ORM\Id]

View File

@ -6,7 +6,7 @@ namespace App\Entity;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: IncidentTypeRepository::class)]
class IncidentType class IncidentType
{ {
#[ORM\Id] #[ORM\Id]

View File

@ -6,7 +6,7 @@ namespace App\Entity;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: MissionRepository::class)]
class Mission class Mission
{ {
#[ORM\Id] #[ORM\Id]

View File

@ -5,7 +5,7 @@ namespace App\Entity;
use App\Repository\MissionCategoryRepository; use App\Repository\MissionCategoryRepository;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: MissionCategoryRepository::class)]
#[ORM\UniqueConstraint(columns: ['mission', 'category'])] #[ORM\UniqueConstraint(columns: ['mission', 'category'])]
class MissionCategory class MissionCategory
{ {

View File

@ -4,7 +4,7 @@ namespace App\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: RepresentationRepository::class)]
#[ORM\UniqueConstraint( #[ORM\UniqueConstraint(
columns: ['employee', 'ride'] columns: ['employee', 'ride']
)] )]

View File

@ -5,7 +5,7 @@ namespace App\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: RequirementRepository::class)]
#[ORM\UniqueConstraint( #[ORM\UniqueConstraint(
columns: ['mission', 'skill'] columns: ['mission', 'skill']
)] )]

View File

@ -5,7 +5,7 @@ namespace App\Entity;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: RideRepository::class)]
class Ride class Ride
{ {
#[ORM\Id] #[ORM\Id]

View File

@ -5,7 +5,7 @@ namespace App\Entity;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity] #[ORM\Entity(repositoryClass: SkillRepository::class)]
class Skill class Skill
{ {
#[ORM\Id] #[ORM\Id]