From 892ef9edb7bbb317aac37bdd0ad91be2647eadc1 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Tue, 9 Oct 2018 21:33:42 +0200 Subject: [PATCH] Update association-mapping.rst Added info about owning and inverse side. --- docs/en/reference/association-mapping.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/reference/association-mapping.rst b/docs/en/reference/association-mapping.rst index bdb12b706f0..b7d6bb8d1df 100644 --- a/docs/en/reference/association-mapping.rst +++ b/docs/en/reference/association-mapping.rst @@ -313,8 +313,8 @@ One-To-Many, Bidirectional -------------------------- A one-to-many association has to be bidirectional, unless you are using a -join table. This is because the many side in a one-to-many association holds -the foreign key, making it the owning side. Doctrine needs the many side +join table. This is because the "many" side in a one-to-many association holds +the foreign key, making it the owning side. Doctrine needs the "many" side defined in order to understand the association. This bidirectional mapping requires the ``mappedBy`` attribute on the @@ -335,7 +335,7 @@ bidirectional many-to-one. { // ... /** - * One Product has Many Features. + * One product has many features. This is the inverse side. * @OneToMany(targetEntity="Feature", mappedBy="product") */ private $features; @@ -351,7 +351,7 @@ bidirectional many-to-one. { // ... /** - * Many Features have One Product. + * Many features have one product. This is the owning side. * @ManyToOne(targetEntity="Product", inversedBy="features") * @JoinColumn(name="product_id", referencedColumnName="id") */