Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Symfony 如何获取翻译的条令实体列名?_Symfony_Doctrine_Translation - Fatal编程技术网

Symfony 如何获取翻译的条令实体列名?

Symfony 如何获取翻译的条令实体列名?,symfony,doctrine,translation,Symfony,Doctrine,Translation,示例:mysql_表 示例细枝文件 您需要使用twig的功能: {{ attribute(gender, 'gender' ~ app.request.locale|capitalize) }} 然而,更好的解决方案是使用专门的工具,例如

示例:mysql_表

示例细枝文件 您需要使用twig的功能:

{{ attribute(gender, 'gender' ~ app.request.locale|capitalize) }}
然而,更好的解决方案是使用专门的工具,例如