Skip to content

Commit

Permalink
Prepare release 3.5 (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Oct 10, 2020
1 parent cb56155 commit 5eb2403
Show file tree
Hide file tree
Showing 25 changed files with 39 additions and 27 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.5.0](sonata-project/SonataDoctrineMongoDBAdminBundle/compare/3.4.0...3.5.0) - 2020-10-09
### Added
- [[#438](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/438)] `FormContractor::getDefaultOptions()` pass `by_reference` from `CollectionType` to `AdminType` ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#430](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/430)] Added `ModelManager::supportsQuery()` ([@franmomu](https://github.com/franmomu))

### Changed
- [[#437](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/437)] Mark some classes as final ([@franmomu](https://github.com/franmomu))

### Deprecated
- [[#430](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/430)] Deprecated `ProxyQuery::getUniqueParameterId()` and `ProxyQuery::entityJoin()` ([@franmomu](https://github.com/franmomu))
- [[#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))

## [3.4.0](https://github.com/SonataDoctrineMongoDBAdminBundle/compare/3.3.0...3.4.0) - 2020-09-24
### Added
- [[#353](https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle/pull/353)] Allow `_sort_by` filter to not be initially defined ([@VincentLanglet](https://github.com/VincentLanglet))
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/FieldDescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Sonata\AdminBundle\Admin\BaseFieldDescription;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class FieldDescription extends BaseFieldDescription
{
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/DatagridBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use Symfony\Component\Form\FormFactoryInterface;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class DatagridBuilder implements DatagridBuilderInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/FormContractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use Symfony\Component\Form\FormFactoryInterface;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class FormContractor implements FormContractorInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/ListBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Sonata\AdminBundle\Guesser\TypeGuesserInterface;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class ListBuilder implements ListBuilderInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/ShowBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Sonata\AdminBundle\Guesser\TypeGuesserInterface;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class ShowBuilder implements ShowBuilderInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Datagrid/Pager.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @author Jonathan H. Wage <[email protected]>
* @author Kévin Dunglas <[email protected]>
*
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class Pager extends BasePager
{
Expand Down
6 changes: 3 additions & 3 deletions src/Datagrid/ProxyQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* This class try to unify the query usage with Doctrine.
*
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class ProxyQuery implements ProxyQueryInterface
{
Expand Down Expand Up @@ -159,7 +159,7 @@ public function getMaxResults()
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/doctrine-mongodb-admin-bundle 3.x and will be removed in version 4.0.
* @deprecated since sonata-project/doctrine-mongodb-admin-bundle 3.5 and will be removed in version 4.0.
*/
public function getUniqueParameterId()
{
Expand All @@ -169,7 +169,7 @@ public function getUniqueParameterId()
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/doctrine-mongodb-admin-bundle 3.x and will be removed in version 4.0.
* @deprecated since sonata-project/doctrine-mongodb-admin-bundle 3.5 and will be removed in version 4.0.
*/
public function entityJoin(array $associationMappings)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* @author Thomas Rabaix <[email protected]>
*
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class AddGuesserCompilerPass implements CompilerPassInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* @author Thomas Rabaix <[email protected]>
*
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class AddTemplatesCompilerPass implements CompilerPassInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @author Michael Williams <[email protected]>
*
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class Configuration implements ConfigurationInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @author Thomas Rabaix <[email protected]>
* @author Michael Williams <[email protected]>
*
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class SonataDoctrineMongoDBAdminExtension extends AbstractSonataAdminExtension
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/BooleanFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\Form\Extension\Core\Type\HiddenType;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class BooleanFilter extends Filter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/CallbackFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\Form\Extension\Core\Type\TextType;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class CallbackFilter extends Filter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/ChoiceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Sonata\AdminBundle\Form\Type\Operator\ContainsOperatorType;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class ChoiceFilter extends Filter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/DateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\Form\Extension\Core\Type\DateType;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class DateFilter extends AbstractDateFilter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/DateTimeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class DateTimeFilter extends AbstractDateFilter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/ModelFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use Sonata\AdminBundle\Form\Type\Operator\EqualOperatorType;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class ModelFilter extends Filter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/NumberFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Sonata\AdminBundle\Form\Type\Operator\NumberOperatorType;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class NumberFilter extends Filter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/StringFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Sonata\AdminBundle\Form\Type\Operator\ContainsOperatorType;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class StringFilter extends Filter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Guesser/FilterTypeGuesser.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
use Symfony\Component\Form\Guess\TypeGuess;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class FilterTypeGuesser extends AbstractTypeGuesser
{
Expand Down
2 changes: 1 addition & 1 deletion src/Guesser/TypeGuesser.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Symfony\Component\Form\Guess\TypeGuess;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class TypeGuesser extends AbstractTypeGuesser
{
Expand Down
4 changes: 2 additions & 2 deletions src/Model/ModelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class ModelManager implements ModelManagerInterface
{
Expand Down Expand Up @@ -267,7 +267,7 @@ public function executeQuery($query)
// NEXT_MAJOR: Throw an InvalidArgumentException instead.
@trigger_error(sprintf(
'Passing other type than "%s" or %s as argument 1 for "%s()" is deprecated since'
.' sonata-project/doctrine-mongodb-admin-bundle 3.x and will throw an exception in 4.0.',
.' sonata-project/doctrine-mongodb-admin-bundle 3.5 and will throw an exception in 4.0.',
Builder::class,
ProxyQuery::class,
__METHOD__
Expand Down
2 changes: 1 addition & 1 deletion src/SonataDoctrineMongoDBAdminBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class SonataDoctrineMongoDBAdminBundle extends Bundle
{
Expand Down
2 changes: 1 addition & 1 deletion src/Util/ObjectAclManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;

/**
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.x.
* @final since sonata-project/doctrine-mongodb-admin-bundle 3.5.
*/
class ObjectAclManipulator extends BaseObjectAclManipulator
{
Expand Down

0 comments on commit 5eb2403

Please sign in to comment.