Skip to content
Permalink
Browse files

Fix return type in of `countBy` @method annotation in Query

  • Loading branch information...
Iandenh committed Nov 16, 2018
1 parent 853b691 commit 160470672d8fdfc559f33f60f6a4e5506db481e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ORM/Query.php
@@ -45,7 +45,7 @@
* @method mixed min($field, $type = SORT_NUMERIC) Returns the minimum value for a single column in all the results.
* @method \Cake\Collection\CollectionInterface groupBy(string|callable $field) In-memory group all results by the value of a column.
* @method \Cake\Collection\CollectionInterface indexBy(string|callable $field) Returns the results indexed by the value of a column.
* @method int countBy(string|callable $field) Returns the number of unique values for a column
* @method \Cake\Collection\CollectionInterface countBy(string|callable $field) Returns the number of unique values for a column
* @method float sumOf(string|callable $field) Returns the sum of all values for a single column
* @method \Cake\Collection\CollectionInterface shuffle() In-memory randomize the order the results are returned
* @method \Cake\Collection\CollectionInterface sample($size = 10) In-memory shuffle the results and return a subset of them.

1 comment on commit 1604706

@davidyell

This comment has been minimized.

Copy link
Contributor

davidyell commented on 1604706 Nov 21, 2018

Thanks for this! Just found this myself today 👍

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.