From 1531c122b88edd5116e0e74e10fcb83ee99b4dfd Mon Sep 17 00:00:00 2001 From: ASTIER Yann Date: Thu, 26 Sep 2024 17:57:11 +0200 Subject: [PATCH] Missing IncidentType & Incident + Mission & Category relations --- src/Entity/Assignment.php | 25 +++++++++++ src/Entity/EmployeeIncident.php | 19 ++++++++ src/Entity/EmployeeMission.php | 20 +++++++++ src/Entity/EmployeeSkill.php | 19 ++++++++ src/Entity/Representation.php | 45 +++++++++++++++++++ .../{Requirements.php => Requirement.php} | 4 +- 6 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 src/Entity/Assignment.php create mode 100644 src/Entity/EmployeeIncident.php create mode 100644 src/Entity/EmployeeMission.php create mode 100644 src/Entity/EmployeeSkill.php create mode 100644 src/Entity/Representation.php rename src/Entity/{Requirements.php => Requirement.php} (90%) diff --git a/src/Entity/Assignment.php b/src/Entity/Assignment.php new file mode 100644 index 0000000..b13ad54 --- /dev/null +++ b/src/Entity/Assignment.php @@ -0,0 +1,25 @@ +id; + } +} diff --git a/src/Entity/EmployeeSkill.php b/src/Entity/EmployeeSkill.php new file mode 100644 index 0000000..887eb6f --- /dev/null +++ b/src/Entity/EmployeeSkill.php @@ -0,0 +1,19 @@ +count; + } + + public function setCount(?int $count): void + { + $this->count = $count; + } + + #[ORM\Column] + private ?\DateTime $date = null; + + public function getDate(): ?\DateTime + { + return $this->date; + } + + public function setDate(?\DateTime $date): void + { + $this->date = $date; + } +} diff --git a/src/Entity/Requirements.php b/src/Entity/Requirement.php similarity index 90% rename from src/Entity/Requirements.php rename to src/Entity/Requirement.php index f2519f8..a69c4a5 100644 --- a/src/Entity/Requirements.php +++ b/src/Entity/Requirement.php @@ -2,10 +2,10 @@ namespace App\Entity; -use App\Repository\RequirementsRepository; + use Doctrine\ORM\Mapping as ORM; - +#[ORM\Table(name: 'Requirements')] class Requirements { #[ORM\Id]