1
0
mirror of synced 2025-02-09 08:49:26 +03:00

Merge pull request #6120 from mschroeder/patch-3

Fixed typos regarding the strategy for composite keys (xml mapping)
This commit is contained in:
Marco Pivetta 2016-11-06 18:50:00 +01:00 committed by GitHub
commit 05e77868ab

View File

@ -321,12 +321,12 @@ Using the simplified definition above Doctrine will use no
identifier strategy for this entity. That means you have to
manually set the identifier before calling
``EntityManager#persist($entity)``. This is the so called
``ASSIGNED`` strategy.
``NONE`` strategy.
If you want to switch the identifier generation strategy you have
to nest a ``<generator />`` element inside the id-element. This of
course only works for surrogate keys. For composite keys you always
have to use the ``ASSIGNED`` strategy.
have to use the ``NONE`` strategy.
.. code-block:: xml