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 articles-model.rst #7911

Merged
merged 2 commits into from
Sep 3, 2024
Merged

Update articles-model.rst #7911

merged 2 commits into from
Sep 3, 2024

Conversation

yosus
Copy link
Contributor

@yosus yosus commented Aug 30, 2024

there is no 'tags' at this point of the tutorial. In the database creation, 'tags' isn't directly linked to 'articles'.

there is no 'tags' at this point of the tutorial. In the database creation, 'tags' isn't directly linked to 'articles'.
@LordSimal
Copy link
Contributor

LordSimal commented Aug 30, 2024

See #7910

Its a N:M relation, therefore its not directly linked but still can be patched

@yosus
Copy link
Contributor Author

yosus commented Aug 30, 2024

but at this point of the tutorial, where the database has been setup, calling bin/cake bake model articles will not create the tags yet.

Maybe this tags should be added in this later stage of the tutorial page, where articles & tags are being linked.

@LordSimal
Copy link
Contributor

This sounds like a bug because the bake tool should generate it.

sorry, the bake does create the `tags` field.  Updated to reflect what bake actually creates using the cake 5 tutorial.
Copy link
Contributor Author

@yosus yosus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, the bake does create the tags field. Updated to reflect what bake actually creates using the cake 5 tutorial.

@markstory markstory merged commit d97413f into cakephp:5.x Sep 3, 2024
3 checks passed
@markstory markstory added this to the 5.x milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants