Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.17 KB

UPGRADE-4.0.md

File metadata and controls

28 lines (19 loc) · 1.17 KB

UPGRADE FROM 3.x to 4.0

Sonata\DoctrineMongoDBAdminBundle\Filter\AbstractDateFilter

This class has been refactored to support range queries, in order to do that the following protected methods have been removed:

  • applyTypeIsLessEqual
  • applyTypeIsGreaterThan
  • applyTypeIsEqual
  • applyType

Prior to this change when filtering using a DateFilter or DateTimeFilter with equals type, it created a range query internally. Now you have to use DateRangeFilter or DateTimeRangeFilter and provide a range of dates.

Sonata\DoctrineMongoDBAdminBundle\FieldDescription\TypeGuesser

When guessing a FieldDescriptionInterface type with association mapping:

  • If the association type is one, the type of the TypeGuess instance is many_to_one instead of mongo_one.
  • If the association type is many, the type of the TypeGuess instance is many_to_many instead of mongo_many.

Deprecations

All the deprecated code introduced on 3.x is removed on 4.0.

Please read 3.x upgrade guides for more information.

See also the diff code.