From 47ec151d5bb6f807782c11ac4b076c32e8dcd99b Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Sat, 14 Dec 2019 11:14:56 +0100 Subject: [PATCH 1/2] Make sure Content factory has an (empty) fields --- src/Configuration/Content/ContentType.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Configuration/Content/ContentType.php b/src/Configuration/Content/ContentType.php index 0c489b94..a40c45a7 100644 --- a/src/Configuration/Content/ContentType.php +++ b/src/Configuration/Content/ContentType.php @@ -39,6 +39,7 @@ class ContentType extends DeepCollection 'singular_slug' => $name, 'singular_name' => $name, 'locales' => [], + 'fields' => new Collection(), ]); } From 69d628f01c02b07edb76b239c1e0bc50bb128bf3 Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Sat, 14 Dec 2019 11:51:20 +0100 Subject: [PATCH 2/2] Update ContentType.php --- src/Configuration/Content/ContentType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Configuration/Content/ContentType.php b/src/Configuration/Content/ContentType.php index a40c45a7..fa4bd0ed 100644 --- a/src/Configuration/Content/ContentType.php +++ b/src/Configuration/Content/ContentType.php @@ -39,7 +39,7 @@ class ContentType extends DeepCollection 'singular_slug' => $name, 'singular_name' => $name, 'locales' => [], - 'fields' => new Collection(), + 'fields' => new Collection(), ]); }