Skip to content

Commit

Permalink
Updated documentation explaining the behavior when you call selectAll…
Browse files Browse the repository at this point in the history
…Except 2x in the same query.
  • Loading branch information
Eugene Ritter committed Mar 8, 2018
1 parent d09f978 commit 6427976
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ORM/Query.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -195,8 +195,12 @@ public function select($fields = [], $overwrite = false)
} }


/** /**
* Select all the columns associated to $table except the $excludedFields. * All the fields associated with the passed table except the excluded
* Excluded fields should not be aliased names. * fields will be added to the select clause of the query. Passed excluded fields should not be aliased.
* After the first call to this method, a second call cannot be used to remove fields that have already
* been added to the query by the first. If you need to change the list after the first call,
* pass overwrite boolean true which will reset the select clause removing all previous additions.
*
* *
* *
* @param \Cake\ORM\Table|\Cake\ORM\Association $table The table to use to get an array of columns * @param \Cake\ORM\Table|\Cake\ORM\Association $table The table to use to get an array of columns
Expand Down

0 comments on commit 6427976

Please sign in to comment.