Fix EntityToJsonTransformer for saved exports

This commit is contained in:
2025-01-07 16:57:06 +01:00
parent 184bb095d8
commit 27b2d77fdb
3 changed files with 9 additions and 2 deletions

View File

@@ -28,8 +28,8 @@ class EntityToJsonTransformer implements DataTransformerInterface
public function reverseTransform($value)
{
if (false === $this->multiple && '' === $value) {
return null;
if ('' === $value) {
return $this->multiple ? [] : null;
}
if ($this->multiple && [] === $value) {