0
我想在我的項目中使用可翻譯的行爲,我跟隨doc一詞如何配置和使用此行爲,但我得到此錯誤:Smfony2:嘗試使用可翻譯的行爲擴展時出現錯誤
CRITICAL - Uncaught PHP Exception ReflectionException: "Property locale does not exist" at C:\wamp\www\Symfony\vendor\gedmo\doctrine-extensions\lib\Gedmo\Translatable\TranslatableListener.php line 296
任何人都可以幫忙嗎? 感謝提前:)
編輯: 這是行296:
$reflectionProperty = $class->getProperty(self::$configurations[$this->name][$meta->name]['locale']);
你打開'config.yml'中的翻譯了嗎? –
是的,我做到了。 –
嘗試'var_dump''self :: $ configurations'。 –