cakephp/cakephp — pull request #4379 by Laykou (2014-08-24 19:59:09+00:00)
Title: Add addSelect method to Query builder. Add additional select fields to the quer...

# 3.0 ORM: Add ability to select custom field with all default fields

This resolves https://github.com/cakephp/cakephp/issues/4360

Use `addSelect` method to add additional select fields to the query, not overwrite defaults and associations.

```PHP
// Example. This will load Articles as usuall but add myField method with appropriate value
$query = $this -> Articles -> addSelect( [ 'myField' => 'field + 20' ] );
```