title: x-editable for yii: concatenate fields on dropdown
body: <p>I have a CGridView with an EditableColumn with a dropdown select defined like this:</p>
  
  <pre><code>array(
      'name'  =&gt; 'Id_department',
      'header'=&gt; 'Department',
      'value' =&gt; '$data-&gt;Id_department ? Department::model()-&gt;findByPk($data-&gt;Id_department)-&gt;getConcatened() : "[click to edit]"',
      'class' =&gt; 'editable.EditableColumn',
      'editable' =&gt; array(
          'type'      =&gt; 'select',
          'model'     =&gt; new Employee(),
          'url'       =&gt; $this-&gt;createUrl('employee/update'),
          'source'    =&gt; $this-&gt;createUrl('department/getDepartments'),
          'params'    =&gt; array('YII_CSRF_TOKEN' =&gt; Yii::app()-&gt;request-&gt;csrfToken),
      ),
  );
  </code></pre>
  
  <p>with this action in the controller:</p>
  
  <pre><code>public function actionGetDepartments(){
      $models = Department::model-&gt;findAll();
      echo CJSON::encode(Editable::source($models, 'Id_department', 'Name'));
      Yii::app()-&gt;end();
  }
  </code></pre>
  
  <p>This code builds the dropdown select with the <strong>Name</strong> attribute as the literal the user see on each option.</p>
  
  <p>The think is that I have to show various attributes, not only one, so I tried to put a function call to a function that concatenates that fields in a single String in the source() function, but it doesn't works:</p>
  
  <pre><code>Editable::source($models, 'Id_department', concatenate())
  </code></pre>
  
  <p>Is there any way to do this?</p>