Permalink
Browse files

use mimetype from file instead of own property

  • Loading branch information...
1 parent 55175f3 commit 24c96451e633dace4560f2cae60f8efb2ca1b1ad @elHornair elHornair committed Feb 22, 2013
Showing with 2 additions and 7 deletions.
  1. +2 −7 Document/Image.php
View
@@ -22,11 +22,6 @@ class Image
*/
protected $file;
- /**
- * @PHPCRODM\String
- */
- protected $mimeType;
-
public function setFile($file)
{
@@ -40,12 +35,12 @@ public function getFile()
public function setMimeType($mimeType)
{
- $this->mimeType = $mimeType;
+ $this->file->getContent()->setMimeType($mimeType);
}
public function getMimeType()
{
- return $this->mimeType;
+ return $this->file->getContent()->getMimeType();
}
public function getContent()

0 comments on commit 24c9645

Please sign in to comment.