Navigation Menu

Skip to content

Commit

Permalink
Allowing IDE to recognize Collection/sortBy() with Query (#12381)
Browse files Browse the repository at this point in the history
Improved documentation for CollectionTrait
  • Loading branch information
AlPri78 authored and markstory committed Jul 21, 2018
1 parent 9c81344 commit 21f0d0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ORM/Query.php
Expand Up @@ -33,6 +33,7 @@
*
* @see \Cake\Collection\CollectionInterface For a full description of the collection methods supported by this class
* @method \Cake\Collection\CollectionInterface each(callable $c) Passes each of the query results to the callable
* @method \Cake\Collection\CollectionInterface sortBy($callback, $dir = SORT_DESC, $type = \SORT_NUMERIC) Sorts the query with the callback
* @method \Cake\Collection\CollectionInterface filter(callable $c = null) Keeps the results using passing the callable test
* @method \Cake\Collection\CollectionInterface reject(callable $c) Removes the results passing the callable test
* @method bool every(callable $c) Returns true if all the results pass the callable test
Expand Down

0 comments on commit 21f0d0e

Please sign in to comment.