Skip to content

Latest commit

 

History

History
343 lines (279 loc) · 33.9 KB

CHANGELOG.md

File metadata and controls

343 lines (279 loc) · 33.9 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

4.11.0 - 2024-01-31

Added

4.10.0 - 2023-05-13

Added

4.9.0 - 2023-04-25

Removed

4.8.0 - 2023-04-09

Changed

  • [#813] Exception message at ModelManager::batchDelete() in order to provide more details about the failed batch operation (@phansys)

Fixed

  • [#811] Catch and display error messages when creating, updating or removing objects (@jordisala1991)

4.7.0 - 2023-03-09

Added

Removed

  • [#799] Support for PHP 7.4
  • [#799] Support for Symfony 6.0 and 6.1

4.6.0 - 2022-09-09

Added

4.5.0 - 2022-08-05

Added

  • [#759] Added ProxyQuery::setOptions() to set Query options. (@WebDaMa)

Changed

  • [#759] Changed ProxyQuery::execute() to include Query options. (@WebDaMa)

4.4.0 - 2022-08-02

Added

4.3.3 - 2022-07-22

Fixed

4.3.2 - 2022-07-21

Fixed

  • [#764] Fix missing 'operator_type' array value returned in AbstractDateFilter:: getFormOptions() bug to avoid not rendered advanced filter options in DateFilter or DateTimeFilter. (@VincentLanglet)

4.3.1 - 2022-07-18

Fixed

4.3.0 - 2022-06-28

Added

Removed

4.2.0 - 2022-06-12

Changed

Fixed

  • [#749] Fixed using ChoiceFilter::class with default options (@franmomu)

Removed

4.1.1 - 2022-04-09

Fixed

4.1.0 - 2021-12-04

Added

4.0.1 - 2021-10-01

Fixed

  • [#680] Fixed not forcing to set field_name in DatagridMapper fields with type defined (@franmomu)
  • [#662] Registered DateRangeFilter and DateTimeRangeFilter in Service Container (@javer)
  • [#665] Allow open ranges for DateRangeFilter and DateTimeRangeFilter (@javer)

4.0.0 - 2021-09-06

Changed

4.0.0-rc.1 - 2021-08-12

Removed

4.0.0-alpha.1 - 2021-06-13

Added

  • [#593] Added DateRangeFilter to be able to filter by dates (@franmomu)
  • [#593] Added DateTimeRangeFilter to be able to filter by dates with time (@franmomu)

Changed

  • [#564] Changed the guessing type of FieldDescriptionInterface with association mapping from mongo_one to FieldDescriptionInterface::MANY_TO_ONE and from mongo_many to FieldDescriptionInterface::MANY_TO_MANY. (@franmomu)
  • [#515] Add final modifier to classes (@franmomu)
  • [#515] Reduce visibility of methods and properties (@franmomu)

Fixed

  • [#593] Fixed using DateOperatorType::TYPE_EQUAL type in a DateFilter and DateTimeFilter, now it filters by the exact date instead of a range. (@franmomu)

Removed

  • [#593] Removed unused input_type option in AbstractDateFilter (@franmomu)
  • [#593] Removed AbstractDateFilter:: applyTypeIsLessEqual (@franmomu)
  • [#593] Removed AbstractDateFilter:: applyTypeIsGreaterThan (@franmomu)
  • [#593] Removed AbstractDateFilter:: applyType (@franmomu)
  • [#575] Remove support for doctrine/persistence 1.x (@franmomu)
  • [#357] The modelManager getDefaultSortValues does not have default _sort_by value anymore. (@VincentLanglet)
  • [#356] Special case for the all value in ChoiceFilter (@VincentLanglet)

3.10.0 - 2021-07-20

Added

Deprecated

  • [#599] Deprecated ProxyQuery::getSingleScalarResult() method (@franmomu)

Fixed

3.9.0 - 2021-05-19

Added

  • [#589] Added IdFilter to be able to filter by id in lists (@franmomu)

Deprecated

  • [#586] Deprecated active_callback option in CallbackFilter (@franmomu)
  • [#586] Deprecated not adding FilterData as type declaration of argument 4 in the callable passed to CallbackFilter (@franmomu)
  • [#584] templates.form and templates.filter config (@dmaicher)

Fixed

  • [#584] Always merge form and filter templates with existing method calls (@dmaicher)

3.8.0 - 2021-04-06

Added

  • [#553] Added Sonata\DoctrineMongoDBAdminBundle\FieldDescription\FieldDescription class (@franmomu)
  • [#553] Added Sonata\DoctrineMongoDBAdminBundle\FieldDescription\TypeGuesser class (@franmomu)
  • [#553] Added Sonata\DoctrineMongoDBAdminBundle\FieldDescription\FilterTypeGuesser class (@franmomu)
  • [#554] Added support for sorting embbeded fields in lists (@franmomu)
  • [#531] Added FieldDescriptionFactory class to create FieldDescription instances (@franmomu)
  • [#548] Added ModelManager::reverseTransform() method (@franmomu)
  • [#528] Added some ProxyQueryInterface to use it as a type declaration (@franmomu)
  • [#526] Support for PHP 8.x (@franmomu)

Deprecated

  • [#558] Deprecated ModelManager::getModelInstance() method (@franmomu)
  • [#558] Deprecated not passing an instance of ProxyQueryInterface to ModelManager::addIdentifiersToQuery() method (@franmomu)
  • [#558] Deprecated not passing an instance of ProxyQueryInterface to ModelManager::batchDelete() method (@franmomu)
  • [#553] Deprecated Sonata\DoctrineMongoDBAdminBundle\Admin\FieldDescription class (@franmomu)
  • [#553] Deprecated Sonata\DoctrineMongoDBAdminBundle\Guesser\TypeGuesser class (@franmomu)
  • [#553] Deprecated Sonata\DoctrineMongoDBAdminBundle\Guesser\FilterTypeGuesser class (@franmomu)
  • [#531] Deprecated ModelManager::getParentMetadataForProperty() method (@franmomu)
  • [#531] Deprecated ModelManager::getNewFieldDescriptionInstance() method (@franmomu)
  • [#531] Deprecated AbstractTypeGuesser class (@franmomu)
  • [#531] Deprecated FilterTypeGuesser::guessType() method (@franmomu)
  • [#531] Deprecated TypeGuesser::guessType() method (@franmomu)
  • [#531] Deprecated ListBuilder::buildActionFieldDescription() method (@franmomu)
  • [#548] Deprecated ModelManager::modelReverseTransform() method (@franmomu)
  • [#528] Deprecated calling Filter::apply() with an instance not implementing ProxyQueryInterface (@franmomu)

Fixed

  • [#549] Missing argument 2 in calls to trigger_error() (@franmomu)

3.7.0 - 2021-01-27

Added

  • [#509] Added implementation of Pager::getCurrentPageResults() method. (@franmomu)
  • [#501] Implemented Sonata\AdminBundle\Datagrid\PagerInterface::countResults() (@dmaicher)

Deprecated

  • [#509] Deprecated Pager::getResults() method in favor of Pager::getCurrentPageResults(). (@franmomu)
  • [#501] Sonata\DoctrineMongoDBAdminBundle\Datagrid\Pager::computeNbResult() (@dmaicher)
  • [#501] Sonata\DoctrineMongoDBAdminBundle\Datagrid\Pager::getNbResults() (@dmaicher)
  • [#501] Sonata\DoctrineMongoDBAdminBundle\Datagrid\Pager::setNbResults() (@dmaicher)

Fixed

3.6.0 - 2021-01-04

Added

  • [#486] Added DataSource to provide a DataSourceInterface implementation. (@franmomu)

Deprecated

  • [#492] Deprecated ModelManager::getMetadata() method. (@franmomu)
  • [#492] Deprecated ModelManager::hasMetadata() method. (@franmomu)
  • [#486] Deprecated ModelManager::getDataSourceIterator(). (@franmomu)
  • [#473] Deprecated ModelManager::getModelIdentifier(). (@franmomu)
  • [#473] Deprecated ModelManager::getDefaultSortValues(). (@franmomu)
  • [#473] Deprecated ModelManager::getDefaultPerPageOptions(). (@franmomu)
  • [#473] Deprecated ModelManager::modelTransform(). (@franmomu)
  • [#451] Deprecated passing null as argument 2 for ModelManager::find(); (@franmomu)
  • [#451] Deprecated passing null as argument 1 for ModelManager::getNormalizedIdentifier(); (@franmomu)
  • [#451] Deprecated passing other type than object as argument 1 for ModelManager::getUrlSafeIdentifier(); (@franmomu)

Fixed

  • [#497] Fixed calling to deprecated Pager::setCountColumn() method. (@franmomu)
  • [#479] Fixed calling to AdminInterface::id without an object. (@franmomu)
  • [#463] FormContractor::getDefaultOptions() passes collection_by_reference option instead of by_reference to AdminType in order to respect the new API (@VincentLanglet)
  • [#470] Fixed returning an array of identifiers in ModelManager::getIdentifierFieldNames. (@franmomu)
  • [#468] Fixed the return type of TypeGuesser::guessType, it must return null or TypeGuess. (@franmomu)
  • [#459] Fixed deprecation constructing FieldDescription without arguments. (@franmomu)

3.5.0 - 2020-10-09

Added

  • [#438] FormContractor::getDefaultOptions() pass by_reference from CollectionType to AdminType (@VincentLanglet)
  • [#430] Added ModelManager::supportsQuery() (@franmomu)

Changed

Deprecated

  • [#430] Deprecated ProxyQuery::getUniqueParameterId() and ProxyQuery::entityJoin() (@franmomu)
  • [#430] Deprecated calling ModelManager::executeQuery() with anything but an instance of Doctrine\ODM\MongoDB\Query\Builder or Sonata\DoctrineMongoDBAdminBundle\Datagrid\ProxyQuery (@franmomu)

3.4.0 - 2020-09-24

Added

  • [#353] Allow _sort_by filter to not be initially defined (@VincentLanglet)
  • [#420] Added returning the own instance in ProxyQuery based on PHPDoc of ProxyQueryInterface (@franmomu)
  • [#408] Added support for symfony/options-resolver:^5.1 (@franmomu)
  • [#408] Added support for twig 3 (@franmomu)
  • [#409] Added doctrine/persistence as a dependency (@franmomu)
  • [#379] Added ModelManager::getDefaultPerPageOptions() (@franmomu)
  • [#379] Added FieldDescription::getTargetModel() (@franmomu)
  • [#378] Added doctrine/collections dependency (@franmomu)
  • [#375] Added sonata-project/form-extensions dependency (@franmomu)
  • [#346] "sonata.admin.manager" tag to "sonata.admin.manager.doctrine_mongodb" service (@phansys)

Changed

  • [#380] Changed DatagridBuilder constructor's first parameter typehint from Symfony\Component\Form\FormFactory to Symfony\Component\Form\FormFactoryInterface (@franmomu)
  • [#373] Use deprecated tag instead of sonata_template_deprecate to not throw unwanted deprecation notices (@franmomu)
  • [#373] Bump Twig to 2.6 (@franmomu)
  • [#374] Bump Symfony to 4.4 (@franmomu)

Deprecated

  • [#414] Deprecate creating ObjectAclManipulator without passing a ManagerRegistry object (@franmomu)
  • [#415] Deprecate ModelManager::getModelCollectionInstance() (@franmomu)
  • [#415] Deprecate ModelManager::collectionClear() (@franmomu)
  • [#415] Deprecate ModelManager::collectionHasElement() (@franmomu)
  • [#415] Deprecate ModelManager::collectionAddElement() (@franmomu)
  • [#415] Deprecate ModelManager::collectionRemoveElement() (@franmomu)
  • [#415] Deprecate ModelManager::getPaginationParameters() (@franmomu)
  • [#415] Deprecate ModelManager::getSortParameters() (@franmomu)
  • [#384] Deprecate ModelManager::getParentFieldDescription() (@franmomu)
  • [#381] Deprecated passing arguments toProxyQuery::execute() (@franmomu)
  • [#368] Deprecated AbstractDateFilter::typeRequiresValue (@franmomu)
  • [#368] Deprecated ModelManager::camelize (@franmomu)
  • [#368] Deprecated constructing ModelManager without passing an instance of PropertyAccessorInterface as second argument (@franmomu)
  • [#379] Deprecated FieldDescription::getTargetEntity() in favor of FieldDescription::getTargetModel() (@franmomu)

Fixed

  • [#385] Fixed exception captured when creating ObjectId (@franmomu)
  • [#377] Replace deprecated operator constants (@franmomu)
  • [#372] Fixed passing null to Doctrine\ODM\MongoDB\Query\Builder::skip and Doctrine\ODM\MongoDB\Query\Builder::limit (@franmomu)
  • [#359] Fixed returning void from methods which are intended to return values and returning values from methods which are intended to return void; (@phansys)
  • [#359] Fixed weak check at ModelManager::getNormalizedIdentifier() (@phansys)

Removed

3.3.0 - 2020-01-08

Fixed

  • Fixed filtering by a field of an embedded object
  • Fixed _action item in ListMapper when type is null
  • Fixed support for doctrine/mongodb-odm 2.x

Removed

  • Support for Symfony < 3.4
  • Support for Symfony >= 4, < 4.2

3.2.2 - 2019-10-16

Added

  • support for doctrine/mongodb-odm 2.x and doctrine/mongodb-odm-bundle 4.x

3.2.1 - 2019-07-03

Fixed

  • Use proper namespace for Sonata\Exporter\Source\DoctrineODMQuerySourceIterator

3.2.0 - 2019-04-03

Fixed

  • using the new collection type namespace
  • deprecation for symfony/config 4.2+
  • missing association admin class in datagrid filters.
  • isLastPage() always returning false

Removed

  • support for php 5 and php 7.0

3.1.1 - 2018-02-08

Changed

  • All templates references are updated to twig namespaced syntax

Fixed

  • Compatibility with autocomplete form type
  • FQCN for form types (Symfony 3 compatibility)
  • Association field popup

3.1.0 - 2018-01-08

Added

  • Added php 7.0 support
  • Added twig dependency

Changed

  • Changed internal folder structure to src, tests and docs
  • Add support for FQCNs form types
  • Switched to templates from SonataAdminBundle
  • Replace twig paths with new naming conventions

Deprecated

  • Association templates

Fixed

  • call of render function now Sf3 compatible
  • Fix FormContractor::getDefaultOptions not checking against form types FQCNs
  • Throw an exception if property name is not found in field mappings
  • A list field with actions type will get all the required field options just like the _action field.
  • _action field will get a proper actions type.
  • Patched collection form handling script to maintain File input state when new items are added to collections
  • Typo in javascript in edit_mongo_one_association_script.html.twig
  • Check for filter Value in StringFilter
  • Missing explicit Symfony dependencies

Removed

  • internal test classes are now excluded from the autoloader
  • Support for old versions of Symfony.