mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
If value is '' and multiple is true then return an empty array
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 ($this->multiple && '' === $value) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if ($this->multiple && [] === $value) {
|
||||
|
Reference in New Issue
Block a user