Skip to content

Commit

Permalink
use mimetype from file instead of own property
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain Horner committed Feb 22, 2013
1 parent 55175f3 commit 24c9645
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Document/Image.php
Expand Up @@ -22,11 +22,6 @@ class Image
*/
protected $file;

/**
* @PHPCRODM\String
*/
protected $mimeType;


public function setFile($file)
{
Expand All @@ -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()
Expand Down

0 comments on commit 24c9645

Please sign in to comment.