Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Releases: NicolasGuilloux/chaplean-dto-handler-bundle

Version 2.3.3

24 Jun 07:52
677f4e7
Compare
Choose a tag to compare

New feature:

Added a new parameter to the DtoUtility::updateEntityList() function. It allows to give the list of properties on which the comparison of the entities is made.

Version 2.3.2

22 May 14:15
cdc690c
Compare
Choose a tag to compare

Bug fix:

Fix the top level DTO validation again. Encapsulate the DataTransferObjectParamConverter request into cloned request to avoid working on original request.

Version 2.3.1

20 May 10:17
71b9026
Compare
Choose a tag to compare

Bug fix:

  • Fix the top level DTO validation, where it previously validated all sub DTO instead of validating the top level DTO and let the validator cascading on the properties.

2.3.0

19 May 08:32
152f46b
Compare
Choose a tag to compare

New feature:

  • The DTO handler can now also bind data from a json file in a multipart/form-data request. It now loads the content with the following priority: Request > File > Attributes > Query. The json file in the body is identified by the mime type application/json or text/json. The DTO handler will also remove these files from the Reques object to leave you with only the other files in your multipart body (such as uploaded images).

Version 2.2.4

17 Feb 09:45
4209f2a
Compare
Choose a tag to compare

Bug fix:

  • Fix unintended breaking change introduced in the previous release.

Version 2.2.3

14 Feb 16:31
7a9b04c
Compare
Choose a tag to compare

Bug fix:

  • Don't treat null as a valid value when converting a value to an entity.

Version 2.2.2

13 Nov 12:56
195a3f9
Compare
Choose a tag to compare

Bug fix:

  • Handles the exception returned by the manager during the conversion, and transforms it into violations.

Version 2.2.1

23 Oct 14:45
Compare
Choose a tag to compare

Bug fix:

  • Fix default values in the bundle configuration definition.

Version 2.2.0

16 Oct 16:31
7f03f76
Compare
Choose a tag to compare

New features

  • The ability to set validation groups linked to an HTTP status code (doc).
  • Add raw input data validation using the dto_raw_input_validation validation group (doc).
  • Add the Field annotation (doc).
  • Add the utility to bind an array to a DTO using the ParamConverter (doc).

Version 2.1.2

09 Oct 09:45
a43f177
Compare
Choose a tag to compare

Bug fix:

  • The @Assert\DateTime and @Assert\Date will now transform the property type in DateTime if no type is set.
  • You can now add a type to bypass the exception thrown by a ParamConverter. Check the documentation.