From 823aee2264808985980a8bcf88464e6edf5fbe54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 13 Sep 2018 20:55:38 +0200 Subject: [PATCH] Allow Document to receive null object Those null object will be checked later by validation --- Entity/Document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Entity/Document.php b/Entity/Document.php index 67159ad7d..586d52035 100644 --- a/Entity/Document.php +++ b/Entity/Document.php @@ -162,7 +162,7 @@ class Document implements HasScopeInterface return $this->object; } - public function setObject(StoredObject $object) + public function setObject(StoredObject $object = null) { $this->object = $object;