1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Fixed typo regarding the id generator mandatory for composite primary keys

The strategy for composite primary keys must be "NONE" although the id generator class is \Doctrine\ORM\Id\AssignedGenerator. Calling the strategy "ASSIGNED" is misleading.
This commit is contained in:
Martin Schröder 2016-11-06 13:37:07 +01:00 committed by GitHub
parent 3b6309318b
commit 3e98fdb082

View File

@ -13,7 +13,7 @@ This tutorial shows how the semantics of composite primary keys work and how the
General Considerations
~~~~~~~~~~~~~~~~~~~~~~
Every entity with a composite key cannot use an id generator other than "ASSIGNED". That means
Every entity with a composite key cannot use an id generator other than "NONE". That means
the ID fields have to have their values set before you call ``EntityManager#persist($entity)``.
Primitive Types only