Florian Eisenmenger il y a 1 an
Parent
révision
ff211bd17f
3 fichiers modifiés avec 216 ajouts et 30 suppressions
  1. +1
    -1
      export/openapi.json
  2. +213
    -27
      export/openapi.yaml
  3. +2
    -2
      src/Mapper/PostingApiToEntityMapper.php

+ 1
- 1
export/openapi.json
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 213
- 27
export/openapi.yaml
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 2
- 2
src/Mapper/PostingApiToEntityMapper.php Voir le fichier

@@ -39,13 +39,13 @@ class PostingApiToEntityMapper implements MapperInterface
} else {
$user = $this->security->getUser();
assert($user instanceof User);
if ($dto->partner === null) {
if ($dto->partnerIri === null) {
throw new \Exception('Partner missing');
}
$partner = $this->microMapper->map($dto->partnerIri, Partner::class, [
MicroMapperInterface::MAX_DEPTH => 1,
]);
if ($dto->product === null) {
if ($dto->productIri === null) {
throw new \Exception('Product missing');
}
$product = $this->microMapper->map($dto->productIri, Product::class, [


Chargement…
Annuler
Enregistrer