We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee9fc39 commit f48b30fCopy full SHA for f48b30f
book/doctrine.rst
@@ -803,6 +803,13 @@ makes sense in the application for each ``Category`` to hold an array of
803
added flexibility. If this makes you uncomfortable, don't worry. Just
804
imagine that it's an ``array`` and you'll be in good shape.
805
806
+.. tip::
807
+
808
+ The targetEntity value in the decorator used above can reference any entity
809
+ with a valid namespace, not just entities defined in the same class. To
810
+ relate to an entity defined in a differen't class or bundle, enter a full
811
+ namespace or shortcut as the targetEntity.
812
813
Next, since each ``Product`` class can relate to exactly one ``Category``
814
object, you'll want to add a ``$category`` property to the ``Product`` class::
815
0 commit comments