Skip to content
Permalink
Browse files

Updated documentation explaining the behavior when you call selectAll…

…Except 2x in the same query.
  • Loading branch information...
T0mats0 committed Mar 8, 2018
1 parent d09f978 commit 64279766b18ec33ba9b66406cccde4a0673a1832
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/ORM/Query.php
@@ -195,8 +195,12 @@ public function select($fields = [], $overwrite = false)
}
/**
* Select all the columns associated to $table except the $excludedFields.
* Excluded fields should not be aliased names.
* All the fields associated with the passed table except the excluded
* 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

0 comments on commit 6427976

Please sign in to comment.
You can’t perform that action at this time.