Re-adding Repositories
This commit is contained in:
parent
ba7e152552
commit
37812be99b
@ -4,7 +4,7 @@ namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: AssignmentRepository::class)]
|
||||
#[ORM\UniqueConstraint(
|
||||
columns: ['employee', 'ride']
|
||||
)]
|
||||
|
@ -6,7 +6,7 @@ namespace App\Entity;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: CategoryRepository::class)]
|
||||
class Category
|
||||
{
|
||||
#[ORM\Id]
|
||||
|
@ -9,7 +9,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: EmployeeRepository::class)]
|
||||
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_EMAIL', fields: ['email'])]
|
||||
class Employee implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: EmployeeSkillRepository::class)]
|
||||
#[ORM\UniqueConstraint(
|
||||
columns: ['employee', 'skill']
|
||||
)]
|
||||
|
@ -5,7 +5,7 @@ namespace App\Entity;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: IncidentRepository::class)]
|
||||
class Incident
|
||||
{
|
||||
#[ORM\Id]
|
||||
|
@ -6,7 +6,7 @@ namespace App\Entity;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: IncidentTypeRepository::class)]
|
||||
class IncidentType
|
||||
{
|
||||
#[ORM\Id]
|
||||
|
@ -6,7 +6,7 @@ namespace App\Entity;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: MissionRepository::class)]
|
||||
class Mission
|
||||
{
|
||||
#[ORM\Id]
|
||||
|
@ -5,7 +5,7 @@ namespace App\Entity;
|
||||
use App\Repository\MissionCategoryRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: MissionCategoryRepository::class)]
|
||||
#[ORM\UniqueConstraint(columns: ['mission', 'category'])]
|
||||
class MissionCategory
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: RepresentationRepository::class)]
|
||||
#[ORM\UniqueConstraint(
|
||||
columns: ['employee', 'ride']
|
||||
)]
|
||||
|
@ -5,7 +5,7 @@ namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: RequirementRepository::class)]
|
||||
#[ORM\UniqueConstraint(
|
||||
columns: ['mission', 'skill']
|
||||
)]
|
||||
|
@ -5,7 +5,7 @@ namespace App\Entity;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: RideRepository::class)]
|
||||
class Ride
|
||||
{
|
||||
#[ORM\Id]
|
||||
|
@ -5,7 +5,7 @@ namespace App\Entity;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Entity(repositoryClass: SkillRepository::class)]
|
||||
class Skill
|
||||
{
|
||||
#[ORM\Id]
|
||||
|
Loading…
Reference in New Issue
Block a user