diff --git a/src/Cms/File.php b/src/Cms/File.php index 0c21e79c64..a5334e771f 100644 --- a/src/Cms/File.php +++ b/src/Cms/File.php @@ -81,8 +81,6 @@ class File extends ModelWithContent */ public function __construct(array $props) { - parent::__construct($props); - if (isset($props['filename'], $props['parent']) === false) { throw new InvalidArgumentException('The filename and parent are required'); } @@ -95,6 +93,8 @@ public function __construct(array $props) $this->root = null; $this->url = $props['url'] ?? null; + parent::__construct($props); + $this->setBlueprint($props['blueprint'] ?? null); }