diff --git a/docs/en/reference/annotations-reference.rst b/docs/en/reference/annotations-reference.rst index 5979939ea..19e9e8b70 100644 --- a/docs/en/reference/annotations-reference.rst +++ b/docs/en/reference/annotations-reference.rst @@ -39,6 +39,8 @@ Index - :ref:`@ChangeTrackingPolicy ` - :ref:`@DiscriminatorColumn ` - :ref:`@DiscriminatorMap ` +- :ref:`@Embeddable ` +- :ref:`@Embedded ` - :ref:`@Entity ` - :ref:`@EntityResult ` - :ref:`@FieldResult ` @@ -282,6 +284,67 @@ depending on whether the classes are in the namespace or not. // ... } + +.. _annref_embeddable: + +@Embeddable +~~~~~~~~~~~~~~~~~~~~~ + +The embeddable is required on an entity targed to be embeddable inside +another. It works together with the :ref:`@Embedded ` +annotation to establish the relationship between two entities. + +.. code-block:: php + +