From 073e3f0653a9da43aa6513446771f9b60c8fb133 Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Thu, 6 Oct 2022 14:43:13 +0200 Subject: [PATCH] fixed a wrong property name on the assignment model --- Resources/forecast-openapi.yaml | 2 +- generated/Model/Assignment.php | 10 +++++----- generated/Normalizer/AssignmentNormalizer.php | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Resources/forecast-openapi.yaml b/Resources/forecast-openapi.yaml index 522a0f4..1d651da 100644 --- a/Resources/forecast-openapi.yaml +++ b/Resources/forecast-openapi.yaml @@ -1138,7 +1138,7 @@ components: type: string format: date-time description: date when the assignment was last updated - updated_by: + updated_by_id: type: integer description: id of the user who last updated this assignment format: int32 diff --git a/generated/Model/Assignment.php b/generated/Model/Assignment.php index ee9963e..f9627a5 100644 --- a/generated/Model/Assignment.php +++ b/generated/Model/Assignment.php @@ -84,7 +84,7 @@ class Assignment * * @var int|null */ - protected $updatedBy; + protected $updatedById; /** * should the assignement be also active on days off? @@ -287,17 +287,17 @@ public function setUpdatedAt(?\DateTime $updatedAt): self /** * id of the user who last updated this assignment. */ - public function getUpdatedBy(): ?int + public function getUpdatedById(): ?int { - return $this->updatedBy; + return $this->updatedById; } /** * id of the user who last updated this assignment. */ - public function setUpdatedBy(?int $updatedBy): self + public function setUpdatedById(?int $updatedById): self { - $this->updatedBy = $updatedBy; + $this->updatedById = $updatedById; return $this; } diff --git a/generated/Normalizer/AssignmentNormalizer.php b/generated/Normalizer/AssignmentNormalizer.php index e169f07..65d55df 100644 --- a/generated/Normalizer/AssignmentNormalizer.php +++ b/generated/Normalizer/AssignmentNormalizer.php @@ -110,10 +110,10 @@ public function denormalize($data, $class, $format = null, array $context = []) } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); } - if (\array_key_exists('updated_by', $data) && null !== $data['updated_by']) { - $object->setUpdatedBy($data['updated_by']); - } elseif (\array_key_exists('updated_by', $data) && null === $data['updated_by']) { - $object->setUpdatedBy(null); + if (\array_key_exists('updated_by_id', $data) && null !== $data['updated_by_id']) { + $object->setUpdatedById($data['updated_by_id']); + } elseif (\array_key_exists('updated_by_id', $data) && null === $data['updated_by_id']) { + $object->setUpdatedById(null); } return $object; @@ -155,8 +155,8 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getUpdatedAt()) { $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s.v\\Z'); } - if (null !== $object->getUpdatedBy()) { - $data['updated_by'] = $object->getUpdatedBy(); + if (null !== $object->getUpdatedById()) { + $data['updated_by_id'] = $object->getUpdatedById(); } return $data;