From 219d13c0f0e2cc977f122ab0a8a4352e2d3b9ad8 Mon Sep 17 00:00:00 2001 From: Kamil Wylegala Date: Sun, 12 Nov 2023 23:44:57 +0100 Subject: [PATCH] Allowed dynamic properties in model. --- README.md | 4 ++++ lib/Cake/Model/Model.php | 1 + 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index fa5a4b168..406a6f197 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,10 @@ It means that composer will look at `master` branch of repository configured und ## Changelog +### 2023-11-13 + +- Silence dynamic property creation warning in Model.php + ### 2023-11-02 - Fixed: unitialized property in Debugger.php diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 860ad5bdf..aef3c1085 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -42,6 +42,7 @@ App::uses('CakeEventManager', 'Event'); * @package Cake.Model * @link https://book.cakephp.org/2.0/en/models.html */ +#[AllowDynamicProperties] class Model extends CakeObject implements CakeEventListener { /**