Skip to content

Commit 81e464d

Browse files
authored
Merge pull request cakephp#5881 from dreamingmind/patch-1
Update retrieving-data-and-resultsets.rst
2 parents f18bf95 + a59d9e3 commit 81e464d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

en/orm/retrieving-data-and-resultsets.rst

+8
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,14 @@ If you need to modify the results after they have been fetched you should use
399399
a :ref:`map-reduce` function to modify the results. The map reduce features
400400
replace the 'afterFind' callback found in previous versions of CakePHP.
401401

402+
.. note::
403+
404+
Passing arguments exposed in the **config** array,
405+
``$products->find('sizes', ['large', 'medium'])``
406+
can give unexpected results when chaining
407+
custom finders. Always pass options as an associative array,
408+
``$products->find('sizes', ['values' => ['large', 'medium']])``
409+
402410
.. _dynamic-finders:
403411

404412
Dynamic Finders

0 commit comments

Comments
 (0)