Skip to content

Commit 450009c

Browse files
authored
Merge pull request #16435 from rudiservo/i16426
Annotations emptyString was not working
2 parents 3f9efda + 0a906cd commit 450009c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG-5.0.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# Changelog
22

3+
## [5.4.0](https://github.com/phalcon/cphalcon/releases/tag/v5.3.1) (xxxx-xx-xx)
4+
5+
### Fixed
6+
- Model Annotation strategy did not work with empty_string [#16426] (https://github.com/phalcon/cphalcon/issues/16426)
7+
8+
39
## [5.3.1](https://github.com/phalcon/cphalcon/releases/tag/v5.3.1) (2023-09-12)
410

511
### Fixed
612
- Fixed infinite save loop in `Phalcon\Mvc\Model::save()` [#16395](https://github.com/phalcon/cphalcon/issues/16395)
713
- Fixed undefined column with columnMap and model caching [#16420](https://github.com/phalcon/cphalcon/issues/16420)
814
- Fixed memory leak in `Phalcon\Mvc\Router::handle()` [#16431](https://github.com/phalcon/cphalcon/pull/16431)
915

10-
1116
## [5.3.0](https://github.com/phalcon/cphalcon/releases/tag/v5.3.0) (2023-08-15)
1217

1318
### Added

phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class Annotations implements StrategyInterface
364364
* Allow empty strings for column
365365
*/
366366
if columnAnnotation->getNamedParameter("allow_empty_string") {
367-
let emptyStringValues[] = columnName;
367+
let emptyStringValues[columnName] = columnName;
368368
}
369369

370370
/**

0 commit comments

Comments
 (0)