Skip to content

Instantly share code, notes, and snippets.

@neojoda
Created April 13, 2017 21:28
Show Gist options
  • Save neojoda/ae4c892f584840efd6e8a64316b2f307 to your computer and use it in GitHub Desktop.
Save neojoda/ae4c892f584840efd6e8a64316b2f307 to your computer and use it in GitHub Desktop.
GROUP_CONCAT in CakePHP 3.X
$query = $this->Blports->find('all');
$query->select(['field1',
'field2' => 'group_concat(field2)',
'field3'])
->group('field2');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment