Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fc99af

Browse files
authored
Merge pull request #7423 from ThomasLandauer/patch-2
Update association-mapping.rst
2 parents fa0885e + 892ef9e commit 2fc99af

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/en/reference/association-mapping.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ One-To-Many, Bidirectional
313313
--------------------------
314314

315315
A one-to-many association has to be bidirectional, unless you are using a
316-
join table. This is because the many side in a one-to-many association holds
317-
the foreign key, making it the owning side. Doctrine needs the many side
316+
join table. This is because the "many" side in a one-to-many association holds
317+
the foreign key, making it the owning side. Doctrine needs the "many" side
318318
defined in order to understand the association.
319319

320320
This bidirectional mapping requires the ``mappedBy`` attribute on the
@@ -335,7 +335,7 @@ bidirectional many-to-one.
335335
{
336336
// ...
337337
/**
338-
* One Product has Many Features.
338+
* One product has many features. This is the inverse side.
339339
* @OneToMany(targetEntity="Feature", mappedBy="product")
340340
*/
341341
private $features;
@@ -351,7 +351,7 @@ bidirectional many-to-one.
351351
{
352352
// ...
353353
/**
354-
* Many Features have One Product.
354+
* Many features have one product. This is the owning side.
355355
* @ManyToOne(targetEntity="Product", inversedBy="features")
356356
* @JoinColumn(name="product_id", referencedColumnName="id")
357357
*/

0 commit comments

Comments
 (0)