Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Get all cities
- $cities = $this->Cities->find('list', [
- 'keyField' => 'id',
- 'valueField' => function ($cities) {
- return $cities->get('full_info');
- }
- ,'order' => ['name' => 'asc']])
- ->contain(['Users']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement