Skip to content

Commit 2ebc2bd

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Minor change to use DateTimeImmutable instead of DateTime [Twig] Add missing space [Validator] Mention doctrine-bridge in the UniqueEntity constraint
2 parents e31a19d + 3b69d2a commit 2ebc2bd

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

doctrine/events.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ define a callback for the ``prePersist`` Doctrine event:
7676
*/
7777
public function setCreatedAtValue(): void
7878
{
79-
$this->createdAt = new \DateTime();
79+
$this->createdAt = new \DateTimeImmutable();
8080
}
8181
}
8282

performance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ You can also profile your template code with the :ref:`stopwatch Twig tag <refer
279279
.. code-block:: twig
280280
281281
{% stopwatch 'render-blog-posts' %}
282-
{% for post in blog_posts%}
282+
{% for post in blog_posts %}
283283
{# ... #}
284284
{% endfor %}
285285
{% endstopwatch %}

reference/constraints/UniqueEntity.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ using an email address that already exists in the system.
1010
If you want to validate that all the elements of the collection are unique
1111
use the :doc:`Unique constraint </reference/constraints/Unique>`.
1212

13+
.. note::
14+
15+
In order to use this constraint, you should have installed the
16+
symfony/doctrine-bridge with Composer.
17+
1318
========== ===================================================================
1419
Applies to :ref:`class <validation-class-target>`
1520
Options - `em`_

reference/constraints/UserPassword.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ password, but needs to enter their old password for security.
1212

1313
.. note::
1414

15-
In order to use this constraints, you should have installed the
15+
In order to use this constraint, you should have installed the
1616
symfony/security-core component with Composer.
1717

1818
========== ===================================================================

0 commit comments

Comments
 (0)