Skip to content

Commit

Permalink
minor symfony#20639 [Doctrine] Fix 2 small grammar errors (cheagerty-…
Browse files Browse the repository at this point in the history
…ledger)

This PR was merged into the 6.4 branch.

Discussion
----------

[Doctrine] Fix 2 small grammar errors

Corrects 2 small grammar errors present in the 6.4 version as well as in more recent versions of the doc.

Commits
-------

035e352 Fix 2 small grammar errors/6.4
  • Loading branch information
javiereguiluz committed Feb 10, 2025
2 parents bc06b51 + 035e352 commit b31ad3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doctrine/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Doctrine Events

`Doctrine`_, the set of PHP libraries used by Symfony to work with databases,
provides a lightweight event system to update entities during the application
execution. These events, called `lifecycle events`_, allow to perform tasks such
execution. These events, called `lifecycle events`_, allow performing tasks such
as *"update the createdAt property automatically right before persisting entities
of this type"*.

Expand All @@ -24,7 +24,7 @@ There are different ways to listen to these Doctrine events:
methods are called for all entities, not only those of a certain type. They are
ideal to **share event logic between entities**.

The performance of each type of listener depends on how many entities applies to:
The performance of each type of listener depends on how many entities it applies to:
lifecycle callbacks are faster than entity listeners, which in turn are faster
than lifecycle listeners.

Expand Down

0 comments on commit b31ad3b

Please sign in to comment.