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

Add mapping from multiple classes #1

Open
anikolaienko opened this issue Jan 5, 2022 · 1 comment
Open

Add mapping from multiple classes #1

anikolaienko opened this issue Jan 5, 2022 · 1 comment

Comments

@anikolaienko
Copy link
Owner

anikolaienko commented Jan 5, 2022

I want to be able to map from more than one class:

mapper.add(FromClassA, FromClassB, ToClassC)

target_obj = mapper.multimap(obj1, obj2)
# or
target_obj = mapper.to(TargetType).multimap(obj1, obj2)
@anikolaienko
Copy link
Owner Author

I don't have specific test cases for this and not sure should this should work without producing unexpected behaviour.

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

No branches or pull requests

1 participant