Open
Description
Description
Right now, the transform attribute only works from the source class. If you define a transform at the class level in the target class, it does not apply.
Use case:
Entities can be mapped to multiple DTO's.
Instead of the entity containing the mapping information, it would be ideal to have the DTO contain the mapping attribute.
Example
#[Map(source: BookingVoyage::class, transform: BookingVoyageApiTransformer::class)]
class BookingVoyageApi
{
}