mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
If value is '' and multiple is true then return an empty array
This commit is contained in:
parent
184bb095d8
commit
2ca9de2f60
@ -28,8 +28,8 @@ class EntityToJsonTransformer implements DataTransformerInterface
|
|||||||
|
|
||||||
public function reverseTransform($value)
|
public function reverseTransform($value)
|
||||||
{
|
{
|
||||||
if (false === $this->multiple && '' === $value) {
|
if ($this->multiple && '' === $value) {
|
||||||
return null;
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->multiple && [] === $value) {
|
if ($this->multiple && [] === $value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user