mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Return a string 'me' in EntityToJsonTransformer.php
This commit is contained in:
parent
b4c6ccf309
commit
483d50e776
@ -69,15 +69,7 @@ class EntityToJsonTransformer implements DataTransformerInterface
|
|||||||
private function denormalizeOne(array|string $item)
|
private function denormalizeOne(array|string $item)
|
||||||
{
|
{
|
||||||
if ('me' === $item) {
|
if ('me' === $item) {
|
||||||
dump($item);
|
return $item;
|
||||||
/* return
|
|
||||||
$this->denormalizer->denormalize(
|
|
||||||
// pass id of current user that we get from the exportGenerationContext...
|
|
||||||
['type' => User::class, 'id' => $item['id']],
|
|
||||||
User::class,
|
|
||||||
'json',
|
|
||||||
$context,
|
|
||||||
);*/
|
|
||||||
}
|
}
|
||||||
if (!\array_key_exists('type', $item)) {
|
if (!\array_key_exists('type', $item)) {
|
||||||
throw new TransformationFailedException('the key "type" is missing on element');
|
throw new TransformationFailedException('the key "type" is missing on element');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user