From 63720a3f017b1c36f949da2f7173b55c43b7dc82 Mon Sep 17 00:00:00 2001 From: ADmad Date: Fri, 3 Jan 2025 19:04:54 +0530 Subject: [PATCH] Update 5.2 migration guide --- en/appendices/5-2-migration-guide.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/en/appendices/5-2-migration-guide.rst b/en/appendices/5-2-migration-guide.rst index a0a25d9c53..cea94aebc1 100644 --- a/en/appendices/5-2-migration-guide.rst +++ b/en/appendices/5-2-migration-guide.rst @@ -18,6 +18,16 @@ Behavior Changes being filterable from logging. - ``NumericPaginator::paginate()`` now uses the ``finder`` option even when a ``SelectQuery`` instance is passed to it. +New Features +============ + +- ``Cake\Database\Type\JsonType::setDecodingOptions()`` was added. This method + lets you define the value for the ``$flags`` argument of ``json_decode()``. +- ``CounterCacheBehavior::updateCounterCache()`` was added. This method allows + you to update the counter cache values for all records of the configured + associations. ``CounterCacheCommand`` was also added to do the same through the + console. + Deprecations ============