Merge pull request #6120 from mschroeder/patch-3
Fixed typos regarding the strategy for composite keys (xml mapping)
This commit is contained in:
commit
05e77868ab
@ -321,12 +321,12 @@ Using the simplified definition above Doctrine will use no
|
|||||||
identifier strategy for this entity. That means you have to
|
identifier strategy for this entity. That means you have to
|
||||||
manually set the identifier before calling
|
manually set the identifier before calling
|
||||||
``EntityManager#persist($entity)``. This is the so called
|
``EntityManager#persist($entity)``. This is the so called
|
||||||
``ASSIGNED`` strategy.
|
``NONE`` strategy.
|
||||||
|
|
||||||
If you want to switch the identifier generation strategy you have
|
If you want to switch the identifier generation strategy you have
|
||||||
to nest a ``<generator />`` element inside the id-element. This of
|
to nest a ``<generator />`` element inside the id-element. This of
|
||||||
course only works for surrogate keys. For composite keys you always
|
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
|
.. code-block:: xml
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user