From 0a906cd4578667c92eaf06e98a7b943d8779487f Mon Sep 17 00:00:00 2001 From: Rudi Servo Date: Tue, 12 Sep 2023 17:26:51 +0000 Subject: [PATCH] Annotations emptyString was not working --- CHANGELOG-5.0.md | 7 ++++++- phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-5.0.md b/CHANGELOG-5.0.md index 0951bdb9c5..e3be7feee9 100644 --- a/CHANGELOG-5.0.md +++ b/CHANGELOG-5.0.md @@ -1,5 +1,11 @@ # Changelog +## [5.4.0](https://github.com/phalcon/cphalcon/releases/tag/v5.3.1) (xxxx-xx-xx) + +### Fixed +- Model Annotation strategy did not work with empty_string [#16426] (https://github.com/phalcon/cphalcon/issues/16426) + + ## [5.3.1](https://github.com/phalcon/cphalcon/releases/tag/v5.3.1) (2023-09-12) ### Fixed @@ -7,7 +13,6 @@ - Fixed undefined column with columnMap and model caching [#16420](https://github.com/phalcon/cphalcon/issues/16420) - Fixed memory leak in `Phalcon\Mvc\Router::handle()` [#16431](https://github.com/phalcon/cphalcon/pull/16431) - ## [5.3.0](https://github.com/phalcon/cphalcon/releases/tag/v5.3.0) (2023-08-15) ### Added diff --git a/phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep b/phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep index ea526fe701..c8aca5ccd5 100644 --- a/phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep +++ b/phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep @@ -364,7 +364,7 @@ class Annotations implements StrategyInterface * Allow empty strings for column */ if columnAnnotation->getNamedParameter("allow_empty_string") { - let emptyStringValues[] = columnName; + let emptyStringValues[columnName] = columnName; } /**