From 60219e085be040547685d77d74bf53d40fdcfd19 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 19 Apr 2021 19:43:28 +0200 Subject: [PATCH] 3.33 --- CHANGELOG.md | 15 +++++++++++++++ UPGRADE-3.x.md | 4 ++-- src/Filter/StringFilter.php | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2b006e3f..408874a80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [3.33.0](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/compare/3.32.1...3.33.0) - 2021-04-19 +### Added +- [[#1416](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1416)] "force_case_insensitivity" option to `StringFilter` in order to force the database to ignore the case sensitivity when matching filters. ([@phansys](https://github.com/phansys)) + +### Changed +- [[#1395](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1395)] Default value for the "case_sensitive" option from `true` to `null` in `StringFilter`. ([@phansys](https://github.com/phansys)) + +### Deprecated +- [[#1416](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1416)] "case_sensitive" option in `StringFilter`. ([@phansys](https://github.com/phansys)) + +### Fixed +- [[#1408](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1408)] Allow to decorate EntityManager ([@michkinn](https://github.com/michkinn)) +- [[#1414](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1414)] Return type for `ModelManager::getModelIdentifier()`. ([@phansys](https://github.com/phansys)) +- [[#1399](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1399)] Fixed triggering always deprecation when calling `ModelManager::getDefaultSortValues()` method ([@franmomu](https://github.com/franmomu)) + ## [3.32.1](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/compare/3.32.0...3.32.1) - 2021-04-06 ### Fixed - [[#1393](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1393)] Added missing filter declaration in the config ([@VincentLanglet](https://github.com/VincentLanglet)) diff --git a/UPGRADE-3.x.md b/UPGRADE-3.x.md index 3bf55da41..7b536f2fa 100644 --- a/UPGRADE-3.x.md +++ b/UPGRADE-3.x.md @@ -1,8 +1,8 @@ UPGRADE 3.x =========== -UPGRADE FROM 3.x to 3.x -======================= +UPGRADE FROM 3.32 to 3.33 +========================= ### Sonata\DoctrineORMAdminBundle\Filter\StringFilter diff --git a/src/Filter/StringFilter.php b/src/Filter/StringFilter.php index aa7a76bad..e5054cb83 100644 --- a/src/Filter/StringFilter.php +++ b/src/Filter/StringFilter.php @@ -92,7 +92,7 @@ public function filter(BaseProxyQueryInterface $query, $alias, $field, $data) // NEXT_MAJOR: Remove the following condition and its body. if (null !== $this->getOption('case_sensitive')) { @trigger_error( - 'Option "case_sensitive" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x' + 'Option "case_sensitive" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.33' .' and will be removed in version 4.x. Use the "force_case_insensitivity" option instead.', \E_USER_DEPRECATED );