diff --git a/lib/Db/Page.php b/lib/Db/Page.php index 30f6020f..6ccc281f 100644 --- a/lib/Db/Page.php +++ b/lib/Db/Page.php @@ -16,6 +16,7 @@ class Page extends Entity implements JsonSerializable { // Basic page properties protected ?string $uuid = null; + protected ?string $version = null; protected ?string $name = null; protected ?string $slug = null; protected ?array $contents = null; @@ -27,6 +28,7 @@ class Page extends Entity implements JsonSerializable */ public function __construct() { $this->addType(fieldName: 'uuid', type: 'string'); + $this->addType(fieldName: 'version', type: 'string'); $this->addType(fieldName: 'name', type: 'string'); $this->addType(fieldName: 'slug', type: 'string'); $this->addType(fieldName: 'contents', type: 'json'); @@ -92,6 +94,7 @@ public function jsonSerialize(): array $array = [ 'id' => $this->id, 'uuid' => $this->uuid, + 'version' => $this->version, 'name' => $this->name, 'slug' => $this->slug, 'contents' => $this->contents,