1) cms
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 }}
2番目のテーブルからhtmlファイルに値を出力するにはどうすればよいですか。