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;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
#[ORM\Entity]
|
#[ORM\Entity(repositoryClass: AssignmentRepository::class)]
|
||||||
#[ORM\UniqueConstraint(
|
#[ORM\UniqueConstraint(
|
||||||
columns: ['employee', 'ride']
|
columns: ['employee', 'ride']
|
||||||
)]
|
)]
|
||||||
|
@ -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]
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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']
|
||||||
)]
|
)]
|
||||||
|
@ -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]
|
||||||
|
@ -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]
|
||||||
|
@ -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]
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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']
|
||||||
)]
|
)]
|
||||||
|
@ -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']
|
||||||
)]
|
)]
|
||||||
|
@ -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]
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user