refs #1472. Changes in images and imageRepo
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
7ff5c87884
commit
dde936be67
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
@ -129,7 +129,6 @@ final class ImageInput
|
|||
|
||||
$image->setRemotePc($this->remotePc);
|
||||
$image->setIsGlobal($this->isGlobal);
|
||||
$image->setCreated(false);
|
||||
|
||||
$partitionInfo = [];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue