mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
Fix EntityToJsonTransformer for saved exports
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user