Skip to content

Instantly share code, notes, and snippets.

@dakota
Created September 16, 2015 10:56
Show Gist options
  • Save dakota/c3df3d097dfb59b0ee91 to your computer and use it in GitHub Desktop.
Save dakota/c3df3d097dfb59b0ee91 to your computer and use it in GitHub Desktop.
<?php
$query = $table1
->find('list', [
'valueField' => 'full_name'
])
->contain(['Table2']);
$query
->select([
'full_name' => $query->newFunc()->concat(['Table1.name', ' '', 'Table2.name'])
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment