/**
  * @param Logo $value
  * @param AbstractPlatform $platform
  * @return mixed|string
  * @throws \RuntimeException
  */
 public function convertToDatabaseValue($value, AbstractPlatform $platform)
 {
     if (!$value) {
         return '';
     }
     if (false === $value instanceof Logo) {
         throw new \RuntimeException("Variable type validation failed, value should be a Logo type");
     }
     $logo = null;
     $name = $value->getName();
     $originalName = $value->getOriginalName();
     if ($name && $originalName) {
         $logo = $name . self::DELIMITER . $originalName;
     }
     return parent::convertToDatabaseValue($logo, $platform);
 }
 /**
  * @param Logo $logo
  */
 public function remove(Logo $logo)
 {
     $this->filesystem->remove($this->branchLogoDir->getRealPath() . '/' . $logo->getName());
 }