diff --git a/lib/Db/Document.php b/lib/Db/Document.php index dd188a22d37..11c9a096492 100644 --- a/lib/Db/Document.php +++ b/lib/Db/Document.php @@ -27,7 +27,6 @@ * @method setChecksum(?string $checksum): void */ class Document extends Entity implements \JsonSerializable { - public $id = null; // TODO: Remove obsolete field `currentVersion` protected int $currentVersion = 0; protected int $lastSavedVersion = 0; @@ -38,7 +37,6 @@ class Document extends Entity implements \JsonSerializable { protected ?string $checksum = null; public function __construct() { - $this->addType('id', 'integer'); $this->addType('currentVersion', 'integer'); $this->addType('lastSavedVersion', 'integer'); $this->addType('lastSavedVersionTime', 'integer'); diff --git a/lib/Db/Session.php b/lib/Db/Session.php index 7473a4a20a9..02454ec7202 100644 --- a/lib/Db/Session.php +++ b/lib/Db/Session.php @@ -27,7 +27,6 @@ * @method void setDocumentId(int $documentId) */ class Session extends Entity implements JsonSerializable { - public $id; protected ?string $userId = null; protected string $token = ''; protected string $color = ''; @@ -37,7 +36,6 @@ class Session extends Entity implements JsonSerializable { protected int $documentId = 0; public function __construct() { - $this->addType('id', 'integer'); $this->addType('documentId', 'integer'); $this->addType('lastContact', 'integer'); } diff --git a/lib/Db/Step.php b/lib/Db/Step.php index cecb8440a01..bd615cb25b4 100644 --- a/lib/Db/Step.php +++ b/lib/Db/Step.php @@ -31,7 +31,6 @@ class Step extends Entity implements JsonSerializable { */ public const VERSION_STORED_IN_ID = 2147483647; - public $id = null; protected string $data = ''; protected int $version = 0; protected int $sessionId = 0; @@ -39,7 +38,6 @@ class Step extends Entity implements JsonSerializable { protected int $timestamp = 0; public function __construct() { - $this->addType('id', 'integer'); $this->addType('version', 'integer'); $this->addType('documentId', 'integer'); $this->addType('sessionId', 'integer');