Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Dto Handler Bundle Laravel Package

chaplean/dto-handler-bundle

View on GitHub
Deep Wiki
Context7
v2.3.3

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.

v2.3.2

Bug fix:

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

v2.3.1

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.
v2.3.0

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).
v2.2.4

Bug fix:

  • Fix unintended breaking change introduced in the previous release.
v2.2.3

Bug fix:

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

Bug fix:

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

Bug fix:

  • Fix default values in the bundle configuration definition.
v2.2.0

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).
v2.1.2

Bug fix:

  • The [@Assert](https://github.com/Assert)\DateTime and [@Assert](https://github.com/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.
v2.1.0

New features:

  • The DTO handler can now also bind data from the attributes and query of the Request object. It loads the content with the following proprity: Request > Attributes > Query.
v2.0.0

New features:

  • Add a static function to update the Collection of entities with an input array.
  • Changing the except option for the UniqueEntityData constraint to support the Expression language.
  • In case of violations from the ParamConverter, the returned value is directly an array of violations instead of a message with the violations formatted in JSON.
  • It is possible to use the tag app.data_transfer_object to declare DTO instead of using the [@DTO](https://github.com/DTO) annotation.

Breaking changes:

  • By changing the except option for the UniqueEntityData constraint, it is now mandatory to use this to target a property withing the DTO (e.g. this.targetEntity).
  • In case of violations, the returned value changed from a message with a JSON encoded string to an array of violations.
v1.0.1

v1.0.1

Bug fixes:

  • Fix EntityManager service issues when not configured
  • Fix nested validation
  • Fix nested DTO collections
v1.0.0

Features:

  • Add ParamConverter for Data Transfer Objects (DTO) that automatically sets the DTO fields based on the request content.
  • Add UniqueEntityData validator designed for DTO
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky