diff --git a/src/Entity/Record.php b/src/Entity/Record.php index 9068fcf..d2f5e00 100644 --- a/src/Entity/Record.php +++ b/src/Entity/Record.php @@ -233,6 +233,10 @@ public function isFinishable(): bool */ public function setParams(iterable $params): void { + $params = array_filter($params, function($v): bool { + return !is_null($v); + }); + $this->params = $params ?: null; }