If you pass an instance of a Cake\ORM\Table or Cake\ORM\Association class,
all the fields in the schema of the table or the association will be added to
the select clause.
public select ( array | Cake\Database\ExpressionInterface | string | |
||
$fields | array | Cake\Database\ExpressionInterface | string | |
fields to be added to the list. |
$overwrite | boolean | whether to reset fields with passed list or not |