X Tutup
The Wayback Machine - https://web.archive.org/web/20210131111024/https://github.com/cakephp/docs/pull/6893
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update retrieving-data-and-resultsets.rst #6893

Open
wants to merge 1 commit into
base: 4.x
from

Conversation

@impronta48
Copy link

@impronta48 impronta48 commented Dec 12, 2020

In line 309 there was a wrong indications of $article->name->get('label') (name should not be there)

In line 309 there was a wrong indications of $article->name->get('label') (name should not be there)
@@ -306,7 +306,7 @@ the Author entity. ::
$query = $articles->find('list', [
'keyField' => 'id',
'valueField' => function ($article) {
return $article->author->get('label');

This comment has been minimized.

@ndm2

ndm2 Dec 12, 2020
Contributor

The code was correct, as the example is ment to show how to use associated data for the key/value list. The example is however missing a contain('Authors').

@othercorey othercorey added this to the 4.x milestone Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
X Tutup