Daniel hace 2 años
padre
commit
6a9fd6d449
Se han modificado 2 ficheros con 2 adiciones y 4 borrados
  1. +1
    -1
      src/Mapper/PartnerApiToEntityMapper.php
  2. +1
    -3
      src/State/EntityToDtoStateProvider.php

+ 1
- 1
src/Mapper/PartnerApiToEntityMapper.php Ver fichero

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


return $entity; return $entity;
} }


+ 1
- 3
src/State/EntityToDtoStateProvider.php Ver fichero

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


private function mapEntityToDto(object $entity, string $resourceClass): object 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);
} }
} }

Cargando…
Cancelar
Guardar