-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
Description
I'm currently trying to use the automapper to solve this problem:
I have multiple objects to map, and I have multiple \DateTime properties in those; I would like to map all of those to the same format\DTO. I have set up everything correctly, but every time that a source object has a \DateTime property, I'm forced to call ->forMember('field', Operation::mapTo(DateTimeDto)).
Is there any way to map that just once and for all?