Skip to content

Commit

Permalink
3.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Mar 10, 2021
1 parent 8237d97 commit 1bc9c2d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 10 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions src/Datagrid/OrderByToSelectWalker.php
Expand Up @@ -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.
Expand All @@ -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);
}
Expand Down
10 changes: 5 additions & 5 deletions src/Datagrid/ProxyQuery.php
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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.
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Model/ModelManager.php
Expand Up @@ -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__,
Expand Down Expand Up @@ -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__,
Expand Down
2 changes: 1 addition & 1 deletion src/Util/ObjectAclManipulator.php
Expand Up @@ -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
Expand Down

0 comments on commit 1bc9c2d

Please sign in to comment.