From 1bc9c2da4abfd2d83c5af434895c282f2396711c Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Tue, 9 Mar 2021 10:13:12 -0300 Subject: [PATCH] 3.31.0 --- CHANGELOG.md | 22 ++++++++++++++++++++++ src/Datagrid/OrderByToSelectWalker.php | 4 ++-- src/Datagrid/ProxyQuery.php | 10 +++++----- src/Model/ModelManager.php | 4 ++-- src/Util/ObjectAclManipulator.php | 2 +- 5 files changed, 32 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4c1257e1..291a15a62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,28 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [3.31.0](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/compare/3.30.0...3.31.0) - 2021-03-11 +### Added +- [[#1335](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1335)] Support for symfony/config:^5.2 ([@phansys](https://github.com/phansys)) +- [[#1335](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1335)] Support for symfony/dependency-injection:^5.2 ([@phansys](https://github.com/phansys)) +- [[#1335](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1335)] Support for symfony/http-foundation:^5.2 ([@phansys](https://github.com/phansys)) +- [[#1319](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1319)] `Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQueryInterface::getDoctrineQuery()` ([@VincentLanglet](https://github.com/VincentLanglet)) + +### Changed +- [[#1336](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1336)] Update constraint for "sonata-project/admin-bundle" from ^3.88 to ^3.89.1 ([@phansys](https://github.com/phansys)) + +### Deprecated +- [[#1333](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1333)] Deprecate passing arguments to `ProxyQuery::execute()` method ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#1326](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1326)] Not passing a `Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQueryInterface` as argument 2 of `ModelManager::addIdentifiersToQuery()` ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#1326](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1326)] Not passing a `Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQueryInterface` as argument 2 of `ModelManager::batchDelete()` ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#1319](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1319)] Class `Sonata\DoctrineORMAdminBundle\Datagrid\OrderByToSelectWalker` ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#1319](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1319)] `Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery::getFixedQueryBuilder()` ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#1319](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1319)] `Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery::getSingleScalarResult()` ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#1323](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1323)] Not passing a `ManagerRegistry` as first argument of `ObjectAclManipulator` ([@VincentLanglet](https://github.com/VincentLanglet)) + +### Fixed +- [[#1319](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1319)] Do not display multiple times the same row in the admin list and the export list ([@VincentLanglet](https://github.com/VincentLanglet)) + ## [3.30.0](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/compare/3.29.0...3.30.0) - 2021-02-24 ### Added - [[#1285](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1285)] Added support for PHP 8.x ([@Yozhef](https://github.com/Yozhef)) diff --git a/src/Datagrid/OrderByToSelectWalker.php b/src/Datagrid/OrderByToSelectWalker.php index 70e804131..a568f6cbc 100644 --- a/src/Datagrid/OrderByToSelectWalker.php +++ b/src/Datagrid/OrderByToSelectWalker.php @@ -23,7 +23,7 @@ /** * NEXT_MAJOR: Remove this file. * - * @deprecated since sonata-project/doctrine-orm-admin-bundle 3.x + * @deprecated since sonata-project/doctrine-orm-admin-bundle 3.31 * * Finds all PathExpressions in an AST's OrderByClause, and ensures that * the referenced fields are present in the SelectClause of the passed AST. @@ -39,7 +39,7 @@ public function __construct($query, $parserResult, array $queryComponents) parent::__construct($query, $parserResult, $queryComponents); @trigger_error(sprintf( - 'The %s class is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x and will be removed in version 4.0.', + 'The %s class is deprecated since sonata-project/doctrine-orm-admin-bundle 3.31 and will be removed in version 4.0.', __CLASS__, ), \E_USER_DEPRECATED); } diff --git a/src/Datagrid/ProxyQuery.php b/src/Datagrid/ProxyQuery.php index db2efc9b1..645769b13 100644 --- a/src/Datagrid/ProxyQuery.php +++ b/src/Datagrid/ProxyQuery.php @@ -194,7 +194,7 @@ public function execute(array $params = [], $hydrationMode = null) // NEXT_MAJOR: Remove this check and update method signature to `execute()`. if (\func_num_args() > 0) { @trigger_error(sprintf( - 'Passing arguments to "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x.', + 'Passing arguments to "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.31.', __METHOD__, ), \E_USER_DEPRECATED); } @@ -302,12 +302,12 @@ public function getSortOrder() /** * NEXT_MAJOR: Remove this method. * - * @deprecated since sonata-project/doctrine-orm-admin-bundle 3.x, to be removed in 4.0. + * @deprecated since sonata-project/doctrine-orm-admin-bundle 3.31, to be removed in 4.0. */ public function getSingleScalarResult() { @trigger_error(sprintf( - 'The method "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x' + 'The method "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.31' .' and will be removed in version 4.0.', __METHOD__, ), \E_USER_DEPRECATED); @@ -410,7 +410,7 @@ final public function setHint($name, $value) /** * NEXT_MAJOR: Remove this method. * - * @deprecated since sonata-project/doctrine-orm-admin-bundle 3.x, to be removed in 4.0. + * @deprecated since sonata-project/doctrine-orm-admin-bundle 3.31, to be removed in 4.0. * * This method alters the query to return a clean set of object with a working * set of Object. @@ -420,7 +420,7 @@ final public function setHint($name, $value) protected function getFixedQueryBuilder(QueryBuilder $queryBuilder) { @trigger_error(sprintf( - 'The method "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x' + 'The method "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.31' .' and will be removed in version 4.0.', __METHOD__, ), \E_USER_DEPRECATED); diff --git a/src/Model/ModelManager.php b/src/Model/ModelManager.php index a7db33609..523854a34 100644 --- a/src/Model/ModelManager.php +++ b/src/Model/ModelManager.php @@ -529,7 +529,7 @@ public function addIdentifiersToQuery($class, BaseProxyQueryInterface $query, ar /* NEXT_MAJOR: Remove this deprecation and update the typehint */ if (!$query instanceof ProxyQueryInterface) { @trigger_error(sprintf( - 'Passing %s as argument 2 to "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x' + 'Passing %s as argument 2 to "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.31' .' and will throw a \TypeError error in version 4.0. You MUST pass an instance of %s instead.', \get_class($query), __METHOD__, @@ -570,7 +570,7 @@ public function batchDelete($class, BaseProxyQueryInterface $query) /* NEXT_MAJOR: Remove this deprecation and update the typehint */ if (!$query instanceof ProxyQueryInterface) { @trigger_error(sprintf( - 'Passing %s as argument 2 to "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x' + 'Passing %s as argument 2 to "%s()" is deprecated since sonata-project/doctrine-orm-admin-bundle 3.31' .' and will throw a \TypeError error in version 4.0. You MUST pass an instance of %s instead.', \get_class($query), __METHOD__, diff --git a/src/Util/ObjectAclManipulator.php b/src/Util/ObjectAclManipulator.php index 4a77cffaa..e57848f04 100644 --- a/src/Util/ObjectAclManipulator.php +++ b/src/Util/ObjectAclManipulator.php @@ -41,7 +41,7 @@ public function __construct(?ManagerRegistry $registry = null) if (null === $registry) { @trigger_error(sprintf( 'Not passing a "%s" instance as argument 1 for "%s()" is deprecated since' - .' sonata-project/doctrine-orm-admin-bundle 3.x and will throw a %s error in 4.0.', + .' sonata-project/doctrine-orm-admin-bundle 3.31 and will throw a %s error in 4.0.', ManagerRegistry::class, __METHOD__, \TypeError::class