How can i make an entity field both "uploadable" and "translatable" at the same time using StofDoctrineExtensionsBundle?
this is what i've tried to do in the entity:
Product.php
/**
* Product
*
* @ORM\Table("product")
* @ORM\Entity(repositoryClass="My\Bundle\Entity\ProductRepository")
*
* @Vich\Uploadable
*/
class Product
{
....
/**
* @Assert\File(
* maxSize="30M"
* )
* @Vich\UploadableField(mapping="product_file", fileNameProperty="fileName")
*
* @var File $file
*/
public $file;
/**
*
* @Gedmo\Translatable
* @ORM\Column(type="string", length=255, name="file_name", nullable=true)
*
* @var string $fileName
*/
protected $fileName;
Unfortunately it doesn't work.