Answer the question
In order to leave comments, you need to log in
Where should entity be mapped?
For example, there is a service that saves a new user. The service accepts DTO, is it right to transfer this DTO to some kind of mapper, which will already return a doctrine entity with all the data, and we already give this entity to the repository?
Answer the question
In order to leave comments, you need to log in
Yes, you can transform dto -> entity in your service, or in a separate transformer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question