The SmartDtoBundle makes it faster to work with data transfer objects and Doctrine entities in a Symfony application by providing automatic hydration of DTO objects from an entity.
With composer, require:
composer require dreadnip/smart-dto-bundle
See the docs.