Daniel преди 1 година
родител
ревизия
240725eba4
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      src/Mapper/DocumentApiToEntityMapper.php

+ 2
- 2
src/Mapper/DocumentApiToEntityMapper.php Целия файл

@@ -57,14 +57,14 @@ class DocumentApiToEntityMapper implements MapperInterface

$entity->setName($dto->name);
$entity->setDescription($dto->description);
if ($dto->partner !== null) {
if ($dto->partnerIri !== null) {
$entity->setPartner(
$this->microMapper->map($dto->partnerIri, Partner::class, [
MicroMapperInterface::MAX_DEPTH => 1,
])
);
}
if ($dto->product !== null) {
if ($dto->productIri !== null) {
$entity->setProduct(
$this->microMapper->map($dto->productIri, Product::class, [
MicroMapperInterface::MAX_DEPTH => 1,


Зареждане…
Отказ
Запис