Yii2: has_many gridview and detailview
<p>I'm going to use 1st normalization form in my Yii2 project, so I've added table like this <br/><strong>| id | post_id | tag_id |</strong><br>and when I'm to posts model I've writed this:</p>

<pre><code>public function getTags()
{
    return $this-&gt;hasMany(PostTags::className(), ['post_id' =&gt; 'id']);
}
</code></pre>

<p>In view widget I've added 'tags.tag_id', but it shows no data.<br>
Is there any way to show this tags in <strong>DetailView</strong> and <strong>GridView</strong> widgets?</p>

<p>May be, I can write "group_concat" somewhere?</p>