Open RemiCollin opened 8 years ago
As the CartItem model supports a polymorphic relationship to a domain object, maybe it would make sense to support several mappers in config. Eg :
"item_mappers" => [ App\SomeModel::class => App\MerxItemMapper::class, App\OtherModel::class => App\OtherItemMapper::class, ]
Yeah, would be great. I will add this in a future release.
As the CartItem model supports a polymorphic relationship to a domain object, maybe it would make sense to support several mappers in config. Eg :