Created
April 13, 2017 21:28
-
-
Save neojoda/ae4c892f584840efd6e8a64316b2f307 to your computer and use it in GitHub Desktop.
GROUP_CONCAT in CakePHP 3.X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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