From c5283eea8756c5ffd6dc311d8ccc9cafa5d69717 Mon Sep 17 00:00:00 2001 From: Maks Rafalko Date: Sun, 1 May 2016 15:03:40 +0300 Subject: [PATCH 1/2] Fix typo `cached` -> `catched` --- docs/en/cookbook/validation-of-entities.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/cookbook/validation-of-entities.rst b/docs/en/cookbook/validation-of-entities.rst index fb0254417..d49daa84f 100644 --- a/docs/en/cookbook/validation-of-entities.rst +++ b/docs/en/cookbook/validation-of-entities.rst @@ -89,7 +89,7 @@ events for one method, this will happen before Beta 1 though. Now validation is performed whenever you call ``EntityManager#persist($order)`` or when you call ``EntityManager#flush()`` and an order is about to be updated. Any -Exception that happens in the lifecycle callbacks will be cached by +Exception that happens in the lifecycle callbacks will be catched by the EntityManager and the current transaction is rolled back. Of course you can do any type of primitive checks, not null, From 04d9bc40e4f5909e6820ec9d26fb7f32392e069d Mon Sep 17 00:00:00 2001 From: Maks Rafalko Date: Fri, 8 Dec 2017 09:33:41 +0300 Subject: [PATCH 2/2] Update validation-of-entities.rst --- docs/en/cookbook/validation-of-entities.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/cookbook/validation-of-entities.rst b/docs/en/cookbook/validation-of-entities.rst index d49daa84f..927d278a6 100644 --- a/docs/en/cookbook/validation-of-entities.rst +++ b/docs/en/cookbook/validation-of-entities.rst @@ -89,7 +89,7 @@ events for one method, this will happen before Beta 1 though. Now validation is performed whenever you call ``EntityManager#persist($order)`` or when you call ``EntityManager#flush()`` and an order is about to be updated. Any -Exception that happens in the lifecycle callbacks will be catched by +Exception that happens in the lifecycle callbacks will be caught by the EntityManager and the current transaction is rolled back. Of course you can do any type of primitive checks, not null,