diff --git a/Document/MediaViewObject.php b/Document/MediaViewObject.php index 0e7a68b7..01da05d8 100644 --- a/Document/MediaViewObject.php +++ b/Document/MediaViewObject.php @@ -50,6 +50,13 @@ class MediaViewObject */ protected $formats = '{}'; + /** + * @var string|null + * + * @Property(type="keyword") + */ + public $mimeType; + /** * @var string * @@ -67,6 +74,7 @@ public function setData(Media $media) $this->id = $media->getId(); $this->title = $media->getTitle(); $this->setFormats($media->getFormats()); + $this->mimeType = $media->getMimeType(); $this->url = $media->getUrl(); $this->copyright = $media->getCopyright();