php - Symfony 2.5 Translate an uploadable field -
How can I create "uploadable" and "translatable" one unit area at the same time using StofDoctrineExtensionsBundle? ?
It is that I have tried to do this unit:
Product.php
/ ** * Product * * @ORM \ Table ("Products") * @ORM \ unit (repository class = "my \ bundle \ unit \ product repository") * * Vectable uploadable * / category product {.... .... / ** * @Assert \ File (* MaxSize = "30M" *) * @witch \ uploadableFilld (mapping = "product_file", filenameproperty = "filename") * * @wire file $ file * / public $ file; / ** * * @Gedmo \ Translatable * @ORM \ column (type = "string", length = 255, name = "file_name", nullable = true) * * @world string $ fileName * / protected $ fileName;
Unfortunately this does not work
Comments
Post a Comment