title: How to use Yii2 kartik gridview editable column with mulitple model relations
body: <p>Question:</p>
  
  <p>I have 2 models, user model and user profile model, both are related with primary and forien key user_id,
  user table has  fields id,username, password, email etc
  user_profile table has filed id, user_id, company, phone etc</p>
  
  <p>I have created gridview in user view. I am using kartik EditableColumn, I want to edit user profile table field company from user gridview.</p>
  
  <p>What I have done so far.
  Please check code what I have done.</p>
  
  <p>please note: it is portion of code i am showing here, and I think it is enough to understand. if you like to see more i will edit question.</p>
  
  <pre><code>use yii\helpers\Url;
  $gridColumns = [
       [
      'class' =&gt; 'kartik\grid\EditableColumn',
      'attribute' =&gt; 'company',
      'pageSummary' =&gt; true,
      'readonly' =&gt; false,
      'value' =&gt; 'userProfiles.company',
      'content' =&gt; function($data,$model){return '&lt;div class="text_content"&gt;'.htmlentities($data-&gt;userProfiles-&gt;company).'&lt;/div&gt;';},
      'editableOptions' =&gt; [
              'header' =&gt; 'Company',
              'inputType' =&gt; kartik\editable\Editable::INPUT_TEXT,
              'options' =&gt; [
                  'pluginOptions' =&gt; [
  
                  ]
              ]
          ],
      ],  
  
      ];
  </code></pre>
  
  <p>//note: used all namespace       </p>
  
  <pre><code> Pjax::begin(); 
   GridView::widget([
  
      'dataProvider' =&gt; $dataProvider,
      'filterModel' =&gt; $searchModel,
      'class' =&gt; 'kartik\grid\EditableColumn',
      'responsive'=&gt;true,
      'hover'=&gt;true,
      'pjax'=&gt;true,
      'tableOptions'=&gt;['class'=&gt;'table table-bordered table-striped dataTable table-hover'],
      'summaryOptions' =&gt; ['class' =&gt;'dataTables_info'],
      'layout'=&gt;"{items}\n&lt;div class='row' style='margin:0.1%'&gt;
                           &lt;div class='col-sm-5'&gt;
                              {summary}
                           &lt;/div&gt;
                           &lt;div class='col-sm-7'&gt;
                              &lt;div class='dataTables_paginate paging_simple_numbers'&gt;{pager}&lt;/div&gt;
                           &lt;/div&gt;
                           &lt;/div&gt;",
      'columns' =&gt; $gridColumns,
  ]); Pjax::end(); 
  </code></pre>
  
  <p>Problem is </p>
  
  <p>When I click on company value it shows me blank. please check image.<a href="https://i.stack.imgur.com/2rQdp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2rQdp.png" alt="enter image description here"></a></p>