From 46deb0732bc1112462d8d029248da050d8ac0d46 Mon Sep 17 00:00:00 2001 From: ADmad Date: Tue, 17 Oct 2023 18:47:28 +0530 Subject: [PATCH] Remove redundant info 5.x has only the immutable versions of datetime classes. --- en/orm/database-basics.rst | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/en/orm/database-basics.rst b/en/orm/database-basics.rst index b3a5d3283e..7ccd4b4d73 100644 --- a/en/orm/database-basics.rst +++ b/en/orm/database-basics.rst @@ -757,23 +757,6 @@ The above class does a few interesting things: Once we've built our custom type, we'll need to :ref:`connect our type to our table class `. -.. _immutable-datetime-mapping: - -Enabling Immutable DateTime Objects ------------------------------------ - -Because Date/Time objects are easily mutated in place, CakePHP allows you to -enable immutable value objects. This is best done in your application's -**config/bootstrap.php** file:: - - TypeFactory::build('datetime')->useImmutable(); - TypeFactory::build('date')->useImmutable(); - TypeFactory::build('time')->useImmutable(); - TypeFactory::build('timestamp')->useImmutable(); - -.. note:: - New applications will have immutable objects enabled by default. - Connection Classes ==================