Skip to content

Commit a6b7569

Browse files
Fixing more links (#9154)
* Fixing more links The first two I missed in #9151 The third is probably older. Shouldn't the chapter name be displayed as link text by default?? Are you sure that everything is set up correctly with the parser? * Update architecture.rst * Update getting-started.rst * Update events.rst
1 parent ca0a6bb commit a6b7569

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

docs/en/reference/architecture.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ in well defined units of work. Work with your objects and modify
184184
them as usual and when you're done call ``EntityManager#flush()``
185185
to make your changes persistent.
186186

187+
.. _unit-of-work:
188+
187189
The Unit of Work
188190
~~~~~~~~~~~~~~~~
189191

docs/en/reference/events.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ Registering Events
127127
There are two ways to register an event:
128128

129129
* *All events* can be registered by calling ``$eventManager->addEventListener()``
130-
or ``eventManager->addEventSubscriber()``, see :ref:`listening-and-subscribing-to-lifecycle-events`
130+
or ``eventManager->addEventSubscriber()``, see
131+
:ref:`Listening and subscribing to Lifecycle Events<listening-and-subscribing-to-lifecycle-events>`
131132
* *Lifecycle Callbacks* can also be registered in the entity mapping (annotation, attribute, etc.),
132-
see :ref:`lifecycle-callbacks`
133+
see :ref:`Lifecycle Callbacks<lifecycle-callbacks>`
133134

134135
Events Overview
135136
---------------
@@ -288,7 +289,7 @@ specific to a particular entity class's lifecycle.
288289

289290
.. note::
290291

291-
Note that Licecycle Callbacks are not supported for Embeddables.
292+
Lifecycle Callbacks are not supported for :doc:`Embeddables </tutorials/embeddables>`.
292293

293294
.. configuration-block::
294295

@@ -394,7 +395,7 @@ behaviors across different entity classes.
394395

395396
Note that they require much more detailed knowledge about the inner
396397
workings of the ``EntityManager`` and ``UnitOfWork`` classes. Please
397-
read the :ref:`reference-events-implementing-listeners` section
398+
read the :ref:`Implementing Event Listeners<reference-events-implementing-listeners>` section
398399
carefully if you are trying to write your own listener.
399400

400401
For event subscribers, there are no surprises. They declare the

docs/en/tutorials/getting-started.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ Let's continue by creating a script to display the name of a product based on it
651651
echo sprintf("-%s\n", $product->getName());
652652
653653
Next we'll update a product's name, given its id. This simple example will
654-
help demonstrate Doctrine's implementation of the UnitOfWork pattern. Doctrine
654+
help demonstrate Doctrine's implementation of the :ref:`UnitOfWork pattern <unit-of-work>`. Doctrine
655655
keeps track of all the entities that were retrieved from the Entity Manager,
656656
and can detect when any of those entities' properties have been modified.
657657
As a result, rather than needing to call ``persist($entity)`` for each individual
@@ -1343,7 +1343,7 @@ call this script as follows:
13431343
php create_bug.php 1 1 1
13441344

13451345
See how simple it is to relate a Bug, Reporter, Engineer and Products?
1346-
Also recall that thanks to the UnitOfWork pattern, Doctrine will detect
1346+
Also recall that thanks to the :ref:`UnitOfWork pattern <unit-of-work>`, Doctrine will detect
13471347
these relations and update all of the modified entities in the database
13481348
automatically when ``flush()`` is called.
13491349

0 commit comments

Comments
 (0)