From 436b15e873a0749bd02989de7e5c9de4fceb08d3 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Wed, 11 Oct 2017 22:45:42 +0200 Subject: [PATCH 1/2] Moved explanation out of PHP-Codeblock... ...to make it visible for XML and YML too. --- docs/en/reference/association-mapping.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/en/reference/association-mapping.rst b/docs/en/reference/association-mapping.rst index fd791a0f3..faae8d551 100644 --- a/docs/en/reference/association-mapping.rst +++ b/docs/en/reference/association-mapping.rst @@ -33,7 +33,7 @@ inverse sides of associations ` Many-To-One, Unidirectional --------------------------- -A many-to-one association is the most common association between objects. +A many-to-one association is the most common association between objects. Example: Many Users have One Address: .. configuration-block:: @@ -46,7 +46,6 @@ A many-to-one association is the most common association between objects. // ... /** - * Many Users have One Address. * @ManyToOne(targetEntity="Address") * @JoinColumn(name="address_id", referencedColumnName="id") */ From d56044966186681001c834740d34960163b09f22 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Wed, 11 Oct 2017 22:50:32 +0200 Subject: [PATCH 2/2] Minor formating --- docs/en/reference/association-mapping.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/association-mapping.rst b/docs/en/reference/association-mapping.rst index faae8d551..bdb12b706 100644 --- a/docs/en/reference/association-mapping.rst +++ b/docs/en/reference/association-mapping.rst @@ -795,7 +795,7 @@ Take an example of two entities ``Article`` and ``Tag``. Whenever you want to connect an Article to a Tag and vice-versa, it is mostly the Article that is responsible for this relation. Whenever you add a new article, you want to connect it with existing or new -tags. Your create Article form will probably support this notion +tags. Your "Create Article" form will probably support this notion and allow specifying the tags directly. This is why you should pick the Article as owning side, as it makes the code more understandable: