Skip to content

Releases: sonata-project/SonataDoctrineMongoDBAdminBundle

3.9.0

19 May 20:53
3.9.0
Compare
Choose a tag to compare

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

06 Apr 16:46
c18eb59
Compare
Choose a tag to compare

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

27 Jan 11:57
cde48b2
Compare
Choose a tag to compare

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

05 Jan 10:12
32f9c61
Compare
Choose a tag to compare

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

10 Oct 12:25
5eb2403
Compare
Choose a tag to compare

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

24 Sep 14:15
3.4.0
Compare
Choose a tag to compare

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

08 Jan 07:57
3.3.0
de549eb
Compare
Choose a tag to compare

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

15 Oct 22:06
3.2.2
78ff856
Compare
Choose a tag to compare

Added

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

3.2.1

03 Jul 06:37
3.2.1
3277b85
Compare
Choose a tag to compare

Fixed

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

3.2.0

03 Apr 20:39
3.2.0
5f20aea
Compare
Choose a tag to compare

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