/**
  * Converts a value from its database representation to its PHP representation
  * of this type.
  *
  * @param mixed                                     $value    The value to convert.
  * @param \Doctrine\DBAL\Platforms\AbstractPlatform $platform The currently used database platform.
  *
  * @return mixed The PHP representation of the value.
  */
 public function convertToPHPValue($value, AbstractPlatform $platform)
 {
     if ($value === null) {
         return null;
     }
     $file = new File($value, File::getDefaultBasePath());
     $file->setLoaded();
     return $file;
 }