From 4e957ebb6afbc784d84c65c8ee33215b8913b9b5 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 27 Sep 2022 23:22:38 +0200 Subject: [PATCH] 4.19.0 (#7934) --- CHANGELOG.md | 13 +++++++++++++ UPGRADE-4.x.md | 7 ++----- src/Translator/BCLabelTranslatorStrategy.php | 4 ++-- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee6489efdb..b3db5e47a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [4.19.0](https://github.com/sonata-project/SonataAdminBundle/compare/4.18.0...4.19.0) - 2022-09-27 +### Changed +- [[#7922](https://github.com/sonata-project/SonataAdminBundle/pull/7922)] [BC break] Change json error output for ajax calls to create or edit admin endpoints. ([@jordisala1991](https://github.com/jordisala1991)) + +### Deprecated +- [[#7927](https://github.com/sonata-project/SonataAdminBundle/pull/7927)] BCLabelTranslatorStrategy ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#7930](https://github.com/sonata-project/SonataAdminBundle/pull/7930)] `ModelManager::getIdentifierValues` ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#7930](https://github.com/sonata-project/SonataAdminBundle/pull/7930)] `ModelManager::getIdentifierFieldNames` ([@VincentLanglet](https://github.com/VincentLanglet)) + +### Fixed +- [[#7930](https://github.com/sonata-project/SonataAdminBundle/pull/7930)] ModelToIdPropertyTransformer now supports composite identifiers ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#7926](https://github.com/sonata-project/SonataAdminBundle/pull/7926)] Fix missing default translation for actions label on list view. ([@jordisala1991](https://github.com/jordisala1991)) + ## [4.18.0](https://github.com/sonata-project/SonataAdminBundle/compare/4.17.0...4.18.0) - 2022-08-21 ### Added - [[#7913](https://github.com/sonata-project/SonataAdminBundle/pull/7913)] Security attributes can be string or symfony expression language expressions ([@VincentLanglet](https://github.com/VincentLanglet)) diff --git a/UPGRADE-4.x.md b/UPGRADE-4.x.md index 9acbf4233f..33bc16f34d 100644 --- a/UPGRADE-4.x.md +++ b/UPGRADE-4.x.md @@ -1,8 +1,8 @@ UPGRADE 4.x =========== -UPGRADE FROM 4.x to 4.x -======================= +UPGRADE FROM 4.18 to 4.19 +========================= ## Form errors retrieved via ajax calls @@ -48,9 +48,6 @@ After: } ``` -UPGRADE FROM 4.18 to 4.19 -========================= - ## BCLabelTranslatorStrategy The BCLabelTranslatorStrategy is deprecated. Please use another label translator strategy or diff --git a/src/Translator/BCLabelTranslatorStrategy.php b/src/Translator/BCLabelTranslatorStrategy.php index 29c43edffb..8ea85fdee2 100644 --- a/src/Translator/BCLabelTranslatorStrategy.php +++ b/src/Translator/BCLabelTranslatorStrategy.php @@ -18,14 +18,14 @@ * * NEXT_MAJOR: Remove this class. * - * @deprecated since sonata-project/admin-bundle 4.x, will be removed in 5.0. + * @deprecated since sonata-project/admin-bundle 4.19, will be removed in 5.0. */ final class BCLabelTranslatorStrategy implements LabelTranslatorStrategyInterface { public function getLabel(string $label, string $context = '', string $type = ''): string { @trigger_error(sprintf( - 'The "%s" class is deprecated since sonata-project/admin-bundle version 4.x and will be' + 'The "%s" class is deprecated since sonata-project/admin-bundle version 4.19 and will be' .' removed in 5.0 version.', self::class ), \E_USER_DEPRECATED);