Daniel 2 лет назад
Родитель
Сommit
6a9fd6d449
2 измененных файлов: 2 добавлений и 4 удалений
  1. +1
    -1
      src/Mapper/PartnerApiToEntityMapper.php
  2. +1
    -3
      src/State/EntityToDtoStateProvider.php

+ 1
- 1
src/Mapper/PartnerApiToEntityMapper.php Просмотреть файл

@@ -64,7 +64,7 @@ class PartnerApiToEntityMapper implements MapperInterface
MicroMapperInterface::MAX_DEPTH => 0,
]);
}
$this->propertyAccessor->setValue($entity, 'postings', $contactEntities);
$this->propertyAccessor->setValue($entity, 'contacts', $contactEntities);

return $entity;
}


+ 1
- 3
src/State/EntityToDtoStateProvider.php Просмотреть файл

@@ -54,8 +54,6 @@ class EntityToDtoStateProvider implements ProviderInterface

private function mapEntityToDto(object $entity, string $resourceClass): object
{
$test = $this->microMapper->map($entity, $resourceClass);
return $test;
//return $this->microMapper->map($entity, $resourceClass);
return $this->microMapper->map($entity, $resourceClass);
}
}

Загрузка…
Отмена
Сохранить