Render custom list of related entities as form using SonataAdmin bundle
<p>I am using Sonata Admin bundle in my Symfony app with doctrine. Now I am facing to some specific requirement whose solution or good/best practice I could not find anywhere.</p>
<p>To explain my issue I will use three simple entities as below.</p>
<p><a href="https://i.stack.imgur.com/aGEQh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aGEQh.jpg" alt="enter image description here" /></a></p>
<p>So every news can have title and description different for every language.</p>
<p>Now what I need. In form view (detail) of news I want to:</p>
<ol>
<li>have inputs of news attributes. (like code or created_date in this case)</li>
<li>then I want to see titles and descriptions for all languages related to current news. And in case, that news has not translation for some language, it means that there is no relation in News_Translation, I want to see empty inputs.</li>
</ol>
<p>So everything in one view (maybe split it into more tabs). And here is a simple example of news detail (form view) for better understanding</p>
<p><a href="https://i.stack.imgur.com/0V30s.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0V30s.jpg" alt="enter image description here" /></a></p>
<p>Is it possible to attain something like this? I am open to any other ideas how to solve it using sonata-admin.</p>