title: Yii2 - How to get field value from relation
body: <p>I have a table which has different types of text data from different sources, identified by type, lang, sourceId and stored in field <code>text</code>. Is there anyway to return by active record relation not object of table but only value of field <code>text</code> in oher words scalar query via relation?  </p>
  
  <p>Example: For now I have:</p>
  
  <pre><code>$modelName-&gt;RelationName-&gt;text) //field name storing expexted data, returns string.
  </code></pre>
  
  <p>Desired way is:</p>
  
  <pre><code>$modelName-&gt;RelationName//text field value returned only.
  </code></pre>