1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Merge pull request #6778 from stevepetcu/clarify-embedded-embeddable-docs

Clarify docs for embedded and embeddable.
This commit is contained in:
Marco Pivetta 2017-10-19 12:40:50 +02:00 committed by GitHub
commit 5f3afa4c4f

View File

@ -318,9 +318,9 @@ depending on whether the classes are in the namespace or not.
@Embeddable @Embeddable
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
The embeddable is required on an entity targeted to be embeddable inside The embeddable annotation is required on a class, in order to make it
another. It works together with the :ref:`@Embedded <annref_embedded>` embeddable inside an entity. It works together with the :ref:`@Embedded <annref_embedded>`
annotation to establish the relationship between two entities. annotation to establish the relationship between the two classes.
.. code-block:: php .. code-block:: php
@ -345,8 +345,8 @@ annotation to establish the relationship between two entities.
@Embedded @Embedded
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
The embedded annotation is required on a member class varible targed to The embedded annotation is required on an entity's member variable,
embed it's class argument inside it's own class. in order to specify that it is an embedded class.
Required attributes: Required attributes: