Skip to content

Commit 96f9b29

Browse files
authored
Merge pull request #12233 from alisolphp/fix-docs-typos-2-20
Docs: fix typos and grammar across reference docs
1 parent 9a55cf4 commit 96f9b29

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/en/reference/advanced-configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ requests.
279279
Connection
280280
----------
281281

282-
The ``$connection`` passed as the first argument to he constructor of
282+
The ``$connection`` passed as the first argument to the constructor of
283283
``EntityManager`` has to be an instance of ``Doctrine\DBAL\Connection``.
284284
You can use the factory ``Doctrine\DBAL\DriverManager::getConnection()``
285285
to create such a connection. The DBAL configuration is explained in the

docs/en/reference/architecture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ recommended, at least not as long as an entity instance still holds
168168
references to proxy objects or is still managed by an EntityManager.
169169
By default, serializing proxy objects does not initialize them. On
170170
unserialization, resulting objects are detached from the entity
171-
manager and cannot be initialiazed anymore. You can implement the
171+
manager and cannot be initialized anymore. You can implement the
172172
``__serialize()`` method if you want to change that behavior, but
173173
then you need to ensure that you won't generate large serialized
174174
object graphs and take care of circular associations.

docs/en/reference/filters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ table alias of the SQL table of the entity.
3030

3131
For the filter to correctly function, the following rules must be followed. Failure to do so will lead to unexpected results from the query cache.
3232
1. Parameters for the query should be set on the filter object by ``SQLFilter#setParameter()`` before the filter is used by the ORM ( i.e. do not set parameters inside ``SQLFilter#addFilterConstraint()`` function ).
33-
2. The filter must be deterministic. Don't change the values base on external inputs.
33+
2. The filter must be deterministic. Don't change the values based on external inputs.
3434

3535
The ``SQLFilter#getParameter()`` function takes care of the proper quoting of parameters.
3636

docs/en/reference/second-level-cache.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Something like below for an entity region:
4444
4545
4646
If the entity holds a collection that also needs to be cached.
47-
An collection region could look something like:
47+
A collection region could look something like:
4848

4949
.. code-block:: php
5050
@@ -630,7 +630,7 @@ DELETE / UPDATE queries
630630
DQL UPDATE / DELETE statements are ported directly into a database and bypass
631631
the second-level cache.
632632
Entities that are already cached will NOT be invalidated.
633-
However the cached data could be evicted using the cache API or an special query hint.
633+
However the cached data could be evicted using the cache API or a special query hint.
634634

635635

636636
Execute the ``UPDATE`` and invalidate ``all cache entries`` using ``Query::HINT_CACHE_EVICT``

docs/en/reference/security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ entity might look like this:
118118
}
119119
}
120120
121-
Now the possiblity of mass-assignment exists on this entity and can
121+
Now the possibility of mass-assignment exists on this entity and can
122122
be exploited by attackers to set the "isAdmin" flag to true on any
123123
object when you pass the whole request data to this method like:
124124

0 commit comments

Comments
 (0)