Skip to content

Commit 401e518

Browse files
cordovalweaverryan
authored andcommitted
some corrections
1 parent 5687a72 commit 401e518

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

book/doctrine.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ To relate the ``Category`` and ``Product`` entities, start by creating a
960960
<entity name="Acme\StoreBundle\Entity\Category">
961961
<!-- ... -->
962962
<one-to-many field="products"
963-
target-entity="product"
963+
target-entity="Product"
964964
mapped-by="category"
965965
/>
966966
@@ -988,7 +988,7 @@ makes sense in the application for each ``Category`` to hold an array of
988988
.. tip::
989989

990990
The targetEntity value in the decorator used above can reference any entity
991-
with a valid namespace, not just entities defined in the same class. To
991+
with a valid namespace, not just entities defined in the same namespace. To
992992
relate to an entity defined in a different class or bundle, enter a full
993993
namespace as the targetEntity.
994994

@@ -1038,7 +1038,8 @@ object, you'll want to add a ``$category`` property to the ``Product`` class:
10381038
<entity name="Acme\StoreBundle\Entity\Product">
10391039
<!-- ... -->
10401040
<many-to-one field="category"
1041-
target-entity="products"
1041+
target-entity="Category"
1042+
inversed-by="products"
10421043
join-column="category"
10431044
>
10441045
<join-column

0 commit comments

Comments
 (0)