1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Merge pull request #1297 from eugene-dounar/docs-embeddable-mapping

[DDC-3480] Docs: Embeddable supported mappings
This commit is contained in:
Marco Pivetta 2015-02-14 23:20:09 +01:00
commit 081ad0efbe

View File

@ -3,7 +3,9 @@ Separating Concerns using Embeddables
Embeddables are classes which are not entities themself, but are embedded
in entities and can also be queried in DQL. You'll mostly want to use them
to reduce duplication or separating concerns.
to reduce duplication or separating concerns. Value objects such as date range
or address are the primary use case for this feature. Embeddables can only
contain properties with basic ``@Column`` mapping.
For the purposes of this tutorial, we will assume that you have a ``User``
class in your application and you would like to store an address in