From 1b29f4907cda8309c1865dba6ae32cd3abe0eb04 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 5 Sep 2016 14:32:09 -0500 Subject: [PATCH 1/2] Add note about losing original values on save --- en/appendices/3-3-migration-guide.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/en/appendices/3-3-migration-guide.rst b/en/appendices/3-3-migration-guide.rst index bf425b0769..f4a8375773 100644 --- a/en/appendices/3-3-migration-guide.rst +++ b/en/appendices/3-3-migration-guide.rst @@ -44,6 +44,9 @@ behavior that may effect your application: * The default ``ErrorController`` no longer disables ``Auth`` and ``Security`` components, as it does not extend ``AppController``. If you are enabling these components through events, you will need to update your code. +* ``Entity::clean`` now cleans original values, clearing them on save. This + behavior was a bug, as the entity's original state should not persist a + save but instead reflect the new state of the entity. PSR7 Middleware Support Added ============================= From ac9d1f8085c672d4027c03c0d7aa423a1d6ae887 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 5 Sep 2016 17:10:44 -0500 Subject: [PATCH 2/2] Changed wording about original entity state --- en/appendices/3-3-migration-guide.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/appendices/3-3-migration-guide.rst b/en/appendices/3-3-migration-guide.rst index f4a8375773..d6077c3e99 100644 --- a/en/appendices/3-3-migration-guide.rst +++ b/en/appendices/3-3-migration-guide.rst @@ -45,8 +45,8 @@ behavior that may effect your application: components, as it does not extend ``AppController``. If you are enabling these components through events, you will need to update your code. * ``Entity::clean`` now cleans original values, clearing them on save. This - behavior was a bug, as the entity's original state should not persist a - save but instead reflect the new state of the entity. + behavior was a bug as the entity's original state should not be retained after + a save, but instead reflect the new state of the entity. PSR7 Middleware Support Added =============================