From dde936be67c580321959696fab495d991f2bf7eb Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Wed, 12 Feb 2025 19:03:42 +0100 Subject: [PATCH] refs #1472. Changes in images and imageRepo --- .../OgRepository/Image/TransferAction.php | 3 ++- src/Dto/Input/ImageInput.php | 1 - src/Entity/Image.php | 24 ------------------- 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/src/Controller/OgRepository/Image/TransferAction.php b/src/Controller/OgRepository/Image/TransferAction.php index 6a3b3c1..caca667 100644 --- a/src/Controller/OgRepository/Image/TransferAction.php +++ b/src/Controller/OgRepository/Image/TransferAction.php @@ -35,9 +35,10 @@ class TransferAction extends AbstractOgRepositoryController foreach ($repositories as $repositoryEntity) { /** @var ImageRepository $repository */ $repository = $repositoryEntity->getEntity(); + /* @var Image $image */ $image = $imageImageRepository->getImage(); - if (!$image->getImageFullsum()) { + if (!$imageImageRepository->getImageFullsum()) { throw new ValidatorException('Fullsum is required'); } diff --git a/src/Dto/Input/ImageInput.php b/src/Dto/Input/ImageInput.php index 35e8fcf..fc79464 100644 --- a/src/Dto/Input/ImageInput.php +++ b/src/Dto/Input/ImageInput.php @@ -129,7 +129,6 @@ final class ImageInput $image->setRemotePc($this->remotePc); $image->setIsGlobal($this->isGlobal); - $image->setCreated(false); $partitionInfo = []; diff --git a/src/Entity/Image.php b/src/Entity/Image.php index 3ba195e..e9607d7 100644 --- a/src/Entity/Image.php +++ b/src/Entity/Image.php @@ -136,30 +136,6 @@ class Image extends AbstractEntity return $this; } - public function isCreated(): ?bool - { - return $this->created; - } - - public function setCreated(?bool $created): static - { - $this->created = $created; - - return $this; - } - - public function getImageFullsum(): ?string - { - return $this->imageFullsum; - } - - public function setImageFullsum(?string $imageFullsum): static - { - $this->imageFullsum = $imageFullsum; - - return $this; - } - public function isGlobal(): ?bool { return $this->isGlobal;