1) 厘米
2) cms_translations
cms
id
url
status
cms_translations
object_id
title
lang_id
我已经写了 cmsRepository 文件
$q = $em->createQuery("SELECT c , d FROM Dashboard\CmsBundle\Entity\Cms c
JOIN c.translations d
WITH c.id = d.object AND c.status = 1
GROUP BY c.sortOrder
ORDER BY c.sortOrder ASC "
);
和 index.html.twing 文件
{% for entity in enitity_cms %}
<a href="{{ path('_cmsAboutUs' , { slug : entity.url }) }}" >{{ entity.Title }}</a>
{% endfor %}
not print in {{ entity.Title }}
如何从第二个表中打印 html 文件中的值。