2017-12-11 4 views
0

작동하지 번역이 내 config.yml입니다심포니는 gedmo

/** 
* @ORM\Table(name="product_category_translations", indexes={ 
*  @ORM\Index(name="product_category_translation_idx", columns={"locale", "object_class", "field", "foreign_key"}) 
* }) 
* @ORM\Entity(repositoryClass="Gedmo\Translatable\Entity\Repository\TranslationRepository") 
*/ 

하지만 수행 할 때

$category->getTitle() 

로캘이 다른 경우에도 항상 영어 (번역되지 않은) 값입니다.

누군가 내가 뭘 잘못하고 있다고 생각하니?

아니면 내 질문에 정보/코드의 중요한 부분을 놓치고 있습니까?

PS : 나는 당신이 당신의 config.yml에서이를 활성화해야 심포니 2.8

답변

0

을 사용하고 있습니다 :

stof_doctrine_extensions: 
    default_locale: "%locale%" 
    translation_fallback: false 
    orm: 
    default: 
     translatable: true 
관련 문제