From cb1b8f73a0b08905aacd48341ee88226993dd914 Mon Sep 17 00:00:00 2001 From: Nattfarinn Date: Mon, 26 Mar 2018 19:33:22 +0200 Subject: [PATCH] EZP-28439: Related content is still displayed after it is moved to trash (#2287) --- Persistence/Content/ContentInfo.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Persistence/Content/ContentInfo.php b/Persistence/Content/ContentInfo.php index 9385792da..93f193332 100644 --- a/Persistence/Content/ContentInfo.php +++ b/Persistence/Content/ContentInfo.php @@ -19,7 +19,10 @@ class ContentInfo extends ValueObject { const STATUS_DRAFT = 0; const STATUS_PUBLISHED = 1; - const STATUS_ARCHIVED = 2; + const STATUS_TRASHED = 2; + + /** @deprecated Use ContentInfo::STATUS_TRASHED */ + const STATUS_ARCHIVED = self::STATUS_TRASHED; /** * Content's unique ID. @@ -58,6 +61,8 @@ class ContentInfo extends ValueObject public $currentVersionNo; /** + * @deprecated Use SPI\ContentInfo::$status (with value ContentInfo::STATUS_PUBLISHED) + * * Flag indicating if content is currently published. * * @var bool @@ -115,4 +120,13 @@ class ContentInfo extends ValueObject * @var mixed */ public $mainLocationId; + + /** + * Status of the content. + * + * Replaces deprecated SPI\ContentInfo::$isPublished. + * + * @var int + */ + public $status; }