Skip to content

Commit 5eb2403

Browse files
Prepare release 3.5 (#443)
1 parent cb56155 commit 5eb2403

25 files changed

+39
-27
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [3.5.0](sonata-project/SonataDoctrineMongoDBAdminBundle/compare/3.4.0...3.5.0) - 2020-10-09
6+
### Added
7+
- [[#438](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/438)] `FormContractor::getDefaultOptions()` pass `by_reference` from `CollectionType` to `AdminType` ([@VincentLanglet](https://github.com/VincentLanglet))
8+
- [[#430](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/430)] Added `ModelManager::supportsQuery()` ([@franmomu](https://github.com/franmomu))
9+
10+
### Changed
11+
- [[#437](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/437)] Mark some classes as final ([@franmomu](https://github.com/franmomu))
12+
13+
### Deprecated
14+
- [[#430](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/430)] Deprecated `ProxyQuery::getUniqueParameterId()` and `ProxyQuery::entityJoin()` ([@franmomu](https://github.com/franmomu))
15+
- [[#430](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/430)] Deprecated calling `ModelManager::executeQuery()` with anything but an instance of `Doctrine\ODM\MongoDB\Query\Builder` or `Sonata\DoctrineMongoDBAdminBundle\Datagrid\ProxyQuery` ([@franmomu](https://github.com/franmomu))
16+
517
## [3.4.0](https://github.com/SonataDoctrineMongoDBAdminBundle/compare/3.3.0...3.4.0) - 2020-09-24
618
### Added
719
- [[#353](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/353)] Allow `_sort_by` filter to not be initially defined ([@VincentLanglet](https://github.com/VincentLanglet))

src/Admin/FieldDescription.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Sonata\AdminBundle\Admin\BaseFieldDescription;
1717

1818
/**
19-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
19+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2020
*/
2121
class FieldDescription extends BaseFieldDescription
2222
{

src/Builder/DatagridBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
use Symfony\Component\Form\FormFactoryInterface;
2727

2828
/**
29-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
29+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
3030
*/
3131
class DatagridBuilder implements DatagridBuilderInterface
3232
{

src/Builder/FormContractor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
use Symfony\Component\Form\FormFactoryInterface;
2929

3030
/**
31-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
31+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
3232
*/
3333
class FormContractor implements FormContractorInterface
3434
{

src/Builder/ListBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Sonata\AdminBundle\Guesser\TypeGuesserInterface;
2222

2323
/**
24-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
24+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2525
*/
2626
class ListBuilder implements ListBuilderInterface
2727
{

src/Builder/ShowBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Sonata\AdminBundle\Guesser\TypeGuesserInterface;
2222

2323
/**
24-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
24+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2525
*/
2626
class ShowBuilder implements ShowBuilderInterface
2727
{

src/Datagrid/Pager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @author Jonathan H. Wage <[email protected]>
2222
* @author Kévin Dunglas <[email protected]>
2323
*
24-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
24+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2525
*/
2626
class Pager extends BasePager
2727
{

src/Datagrid/ProxyQuery.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* This class try to unify the query usage with Doctrine.
2121
*
22-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
22+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2323
*/
2424
class ProxyQuery implements ProxyQueryInterface
2525
{
@@ -159,7 +159,7 @@ public function getMaxResults()
159159
/**
160160
* NEXT_MAJOR: Remove this method.
161161
*
162-
* @deprecated since sonata-project/doctrine-mongodb-admin-bundle 3.x and will be removed in version 4.0.
162+
* @deprecated since sonata-project/doctrine-mongodb-admin-bundle 3.5 and will be removed in version 4.0.
163163
*/
164164
public function getUniqueParameterId()
165165
{
@@ -169,7 +169,7 @@ public function getUniqueParameterId()
169169
/**
170170
* NEXT_MAJOR: Remove this method.
171171
*
172-
* @deprecated since sonata-project/doctrine-mongodb-admin-bundle 3.x and will be removed in version 4.0.
172+
* @deprecated since sonata-project/doctrine-mongodb-admin-bundle 3.5 and will be removed in version 4.0.
173173
*/
174174
public function entityJoin(array $associationMappings)
175175
{

src/DependencyInjection/Compiler/AddGuesserCompilerPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* @author Thomas Rabaix <[email protected]>
2222
*
23-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
23+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2424
*/
2525
class AddGuesserCompilerPass implements CompilerPassInterface
2626
{

src/DependencyInjection/Compiler/AddTemplatesCompilerPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* @author Thomas Rabaix <[email protected]>
2121
*
22-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
22+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2323
*/
2424
class AddTemplatesCompilerPass implements CompilerPassInterface
2525
{

src/DependencyInjection/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @author Michael Williams <[email protected]>
2626
*
27-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
27+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2828
*/
2929
class Configuration implements ConfigurationInterface
3030
{

src/DependencyInjection/SonataDoctrineMongoDBAdminExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @author Thomas Rabaix <[email protected]>
2424
* @author Michael Williams <[email protected]>
2525
*
26-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
26+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2727
*/
2828
class SonataDoctrineMongoDBAdminExtension extends AbstractSonataAdminExtension
2929
{

src/Filter/BooleanFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
2020

2121
/**
22-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
22+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2323
*/
2424
class BooleanFilter extends Filter
2525
{

src/Filter/CallbackFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Component\Form\Extension\Core\Type\TextType;
2020

2121
/**
22-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
22+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2323
*/
2424
class CallbackFilter extends Filter
2525
{

src/Filter/ChoiceFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Sonata\AdminBundle\Form\Type\Operator\ContainsOperatorType;
2020

2121
/**
22-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
22+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2323
*/
2424
class ChoiceFilter extends Filter
2525
{

src/Filter/DateFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Form\Extension\Core\Type\DateType;
1818

1919
/**
20-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
20+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2121
*/
2222
class DateFilter extends AbstractDateFilter
2323
{

src/Filter/DateTimeFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
1818

1919
/**
20-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
20+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2121
*/
2222
class DateTimeFilter extends AbstractDateFilter
2323
{

src/Filter/ModelFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use Sonata\AdminBundle\Form\Type\Operator\EqualOperatorType;
2424

2525
/**
26-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
26+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2727
*/
2828
class ModelFilter extends Filter
2929
{

src/Filter/NumberFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Sonata\AdminBundle\Form\Type\Operator\NumberOperatorType;
1919

2020
/**
21-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
21+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2222
*/
2323
class NumberFilter extends Filter
2424
{

src/Filter/StringFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Sonata\AdminBundle\Form\Type\Operator\ContainsOperatorType;
2020

2121
/**
22-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
22+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2323
*/
2424
class StringFilter extends Filter
2525
{

src/Guesser/FilterTypeGuesser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
use Symfony\Component\Form\Guess\TypeGuess;
3535

3636
/**
37-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
37+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
3838
*/
3939
class FilterTypeGuesser extends AbstractTypeGuesser
4040
{

src/Guesser/TypeGuesser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Symfony\Component\Form\Guess\TypeGuess;
2121

2222
/**
23-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
23+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2424
*/
2525
class TypeGuesser extends AbstractTypeGuesser
2626
{

src/Model/ModelManager.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
3131

3232
/**
33-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
33+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
3434
*/
3535
class ModelManager implements ModelManagerInterface
3636
{
@@ -267,7 +267,7 @@ public function executeQuery($query)
267267
// NEXT_MAJOR: Throw an InvalidArgumentException instead.
268268
@trigger_error(sprintf(
269269
'Passing other type than "%s" or %s as argument 1 for "%s()" is deprecated since'
270-
.' sonata-project/doctrine-mongodb-admin-bundle 3.x and will throw an exception in 4.0.',
270+
.' sonata-project/doctrine-mongodb-admin-bundle 3.5 and will throw an exception in 4.0.',
271271
Builder::class,
272272
ProxyQuery::class,
273273
__METHOD__

src/SonataDoctrineMongoDBAdminBundle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Component\HttpKernel\Bundle\Bundle;
2020

2121
/**
22-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
22+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2323
*/
2424
class SonataDoctrineMongoDBAdminBundle extends Bundle
2525
{

src/Util/ObjectAclManipulator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
2626

2727
/**
28-
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
28+
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
2929
*/
3030
class ObjectAclManipulator extends BaseObjectAclManipulator
3131
{

0 commit comments

Comments
 (0)