Quellcode durchsuchen

Exception

master
Florian Eisenmenger vor 1 Jahr
Ursprung
Commit
eb84fcc737
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      src/Mapper/PostingApiToEntityMapper.php

+ 1
- 1
src/Mapper/PostingApiToEntityMapper.php Datei anzeigen

@@ -46,7 +46,7 @@ class PostingApiToEntityMapper implements MapperInterface
MicroMapperInterface::MAX_DEPTH => 1, MicroMapperInterface::MAX_DEPTH => 1,
]); ]);
if ($dto->product === null) { if ($dto->product === null) {
throw new \Exception('Partner missing');
throw new \Exception('Product missing');
} }
$product = $this->microMapper->map($dto->product, Product::class, [ $product = $this->microMapper->map($dto->product, Product::class, [
MicroMapperInterface::MAX_DEPTH => 1, MicroMapperInterface::MAX_DEPTH => 1,


Laden…
Abbrechen
Speichern