Skip to content

Commit

Permalink
Merge pull request #7939 from mehov/5.x
Browse files Browse the repository at this point in the history
Clarify that a primary key is required #7936
  • Loading branch information
markstory authored Oct 26, 2024
2 parents 387685f + 5b6567e commit 1d7dfe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/orm/associations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ example above we would need tables for ``articles``, ``tags`` and
``articles_tags``. The ``articles_tags`` table contains the data that links
tags and articles together. The joining table is named after the two tables
involved, separated with an underscore by convention. In its simplest form, this
table consists of ``article_id`` and ``tag_id``.
table consists of ``article_id`` and ``tag_id``, as well as `multiple-column ``PRIMARY KEY`` index <https://dev.mysql.com/doc/refman/8.4/en/create-table.html#idm44961976278224>`_ spanning both of these columns.

**belongsToMany** requires a separate join table that includes both *model*
names.
Expand Down

0 comments on commit 1d7dfe7

Please sign in to comment.