Daniel před 2 roky
rodič
revize
6a9fd6d449
2 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. +1
    -1
      src/Mapper/PartnerApiToEntityMapper.php
  2. +1
    -3
      src/State/EntityToDtoStateProvider.php

+ 1
- 1
src/Mapper/PartnerApiToEntityMapper.php Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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);
}
}

Načítá se…
Zrušit
Uložit