public function getFilePath()
{
if (!$this->attribute->isType(Attribute::TYPE_FILE)) {
return null;
}
$file = Yii::app()->getBasePath() . '/' . Yii::app()->getModule('yupe')->uploadPath . '/' . Yii::app()->getModule('store')->uploadPath . '/product/' . $this->value();
return \yupe\helpers\YFile::rmFile($file);
}