1717/**
1818 * Preview entity mapped to the oc_previews and oc_preview_locations table.
1919 *
20+ * @method string getId()
21+ * @method void setId(string $id)
2022 * @method int getFileId() Get the file id of the original file.
2123 * @method void setFileId(int $fileId)
2224 * @method int getStorageId() Get the storage id of the original file.
2325 * @method void setStorageId(int $fileId)
2426 * @method int getOldFileId() Get the old location in the file-cache table, for legacy compatibility.
2527 * @method void setOldFileId(int $oldFileId)
26- * @method int getLocationId() Get the location id in the preview_locations table. Only set when using an object store as primary storage.
27- * @method void setLocationId(int $locationId)
28+ * @method string getLocationId() Get the location id in the preview_locations table. Only set when using an object store as primary storage.
29+ * @method void setLocationId(string $locationId)
2830 * @method string|null getBucketName() Get the bucket name where the preview is stored. This is stored in the preview_locations table.
2931 * @method string|null getObjectStoreName() Get the object store name where the preview is stored. This is stored in the preview_locations table.
3032 * @method int getWidth() Get the width of the preview.
4648 * @method string getEtag() Get the etag of the preview.
4749 * @method void setEtag(string $etag)
4850 * @method string|null getVersion() Get the version for files_versions_s3
49- * @method void setVersionId(int $versionId)
51+ * @method void setVersionId(string $versionId)
5052 * @method bool|null getIs() Get the version for files_versions_s3
5153 * @method bool isEncrypted() Get whether the preview is encrypted. At the moment every preview is unencrypted.
5254 * @method void setEncrypted(bool $encrypted)
@@ -57,7 +59,7 @@ class Preview extends Entity {
5759 protected ?int $ fileId = null ;
5860 protected ?int $ oldFileId = null ;
5961 protected ?int $ storageId = null ;
60- protected ?int $ locationId = null ;
62+ protected ?string $ locationId = null ;
6163 protected ?string $ bucketName = null ;
6264 protected ?string $ objectStoreName = null ;
6365 protected ?int $ width = null ;
@@ -72,14 +74,15 @@ class Preview extends Entity {
7274 protected ?bool $ cropped = null ;
7375 protected ?string $ etag = null ;
7476 protected ?string $ version = null ;
75- protected ?int $ versionId = null ;
77+ protected ?string $ versionId = null ;
7678 protected ?bool $ encrypted = null ;
7779
7880 public function __construct () {
81+ $ this ->addType ('id ' , Types::STRING );
7982 $ this ->addType ('fileId ' , Types::BIGINT );
8083 $ this ->addType ('storageId ' , Types::BIGINT );
8184 $ this ->addType ('oldFileId ' , Types::BIGINT );
82- $ this ->addType ('locationId ' , Types::BIGINT );
85+ $ this ->addType ('locationId ' , Types::STRING );
8386 $ this ->addType ('width ' , Types::INTEGER );
8487 $ this ->addType ('height ' , Types::INTEGER );
8588 $ this ->addType ('mimetypeId ' , Types::INTEGER );
0 commit comments