Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple domain object mapper ? #2

Open
RemiCollin opened this issue Feb 9, 2016 · 1 comment
Open

Support multiple domain object mapper ? #2

RemiCollin opened this issue Feb 9, 2016 · 1 comment
Assignees

Comments

@RemiCollin
Copy link
Contributor

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,
]

@dvlpp dvlpp self-assigned this Feb 10, 2016
@dvlpp
Copy link
Owner

dvlpp commented Feb 10, 2016

Yeah, would be great. I will add this in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants