Skip to content

Commit

Permalink
3.34
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed May 2, 2021
1 parent 4555002 commit 79e7154
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).

## [3.34.0](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/compare/3.33.0...3.34.0) - 2021-05-02
### Changed
- [[#1425](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1425)] `ProxyQuery::execute()` is now returning a Paginator instead of an array. ([@VincentLanglet](https://github.com/VincentLanglet))

### Deprecated
- [[#1427](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1427)] `templates.form` and `templates.filter` config ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#1428](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1428)] Deprecated not adding `FilterData` as type declaration of argument 4 in the callable passed to `CallbackFilter` ([@franmomu](https://github.com/franmomu))

### Fixed
- [[#1427](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1427)] Always merge `SonataDoctrineORMAdmin` form and filter templates. ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#1427](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1427)] Using `sonata_admin` configuration. ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#1425](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/1425)] Support for fetch join with simple pager. ([@VincentLanglet](https://github.com/VincentLanglet))

## [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))
Expand Down
4 changes: 2 additions & 2 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
UPGRADE 3.x
===========

UPGRADE FROM 3.x to 3.x
=======================
UPGRADE FROM 3.33 to 3.34
=========================

### Sonata\DoctrineORMAdminBundle\Filter\CallbackFilter

Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ public function getConfigTreeBuilder()
->children()
// NEXT_MAJOR: Remove this option.
->arrayNode('form')
->setDeprecated('The "%node%" option is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x.')
->setDeprecated('The "%node%" option is deprecated since sonata-project/doctrine-orm-admin-bundle 3.34.')
->prototype('scalar')->end()
->defaultValue(['@SonataDoctrineORMAdmin/Form/form_admin_fields.html.twig'])
->end()
// NEXT_MAJOR: Remove this option.
->arrayNode('filter')
->setDeprecated('The "%node%" option is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x.')
->setDeprecated('The "%node%" option is deprecated since sonata-project/doctrine-orm-admin-bundle 3.34.')
->prototype('scalar')->end()
->defaultValue(['@SonataDoctrineORMAdmin/Form/filter_admin_fields.html.twig'])
->end()
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/CallbackFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function filter(BaseProxyQueryInterface $query, $alias, $field, $data)
} else {
@trigger_error(sprintf(
'Not adding "%1$s" as type declaration for argument 4 is deprecated since'
.' sonata-project/doctrine-orm-admin-bundle 3.x and the argument will be a "%1$s" instance in version 4.0.',
.' sonata-project/doctrine-orm-admin-bundle 3.34 and the argument will be a "%1$s" instance in version 4.0.',
FilterData::class
), \E_USER_DEPRECATED);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Filter/CallbackFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function testItThrowsDeprecationWithoutFilterData(callable $callable): vo
'field_name' => 'field_name_test',
]);

$this->expectDeprecation('Not adding "Sonata\AdminBundle\Filter\Model\FilterData" as type declaration for argument 4 is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x and the argument will be a "Sonata\AdminBundle\Filter\Model\FilterData" instance in version 4.0.');
$this->expectDeprecation('Not adding "Sonata\AdminBundle\Filter\Model\FilterData" as type declaration for argument 4 is deprecated since sonata-project/doctrine-orm-admin-bundle 3.34 and the argument will be a "Sonata\AdminBundle\Filter\Model\FilterData" instance in version 4.0.');

$filter->apply($proxyQuery, ['value' => 'myValue']);
$this->assertTrue($filter->isActive());
Expand Down

0 comments on commit 79e7154

Please sign in to comment.