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

Error building reader for csv with mapping from config #12

Closed
proggeler opened this issue Nov 4, 2022 · 1 comment
Closed

Error building reader for csv with mapping from config #12

proggeler opened this issue Nov 4, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@proggeler
Copy link
Member

proggeler commented Nov 4, 2022

ReaderBuilder::build('file.csv, ['mapping' => ['col' => 'key']]) will throw an error.

Add the ObjectDecorator before this mapping can be resolved via configuration.

@proggeler proggeler added the bug Something isn't working label Nov 4, 2022
@proggeler
Copy link
Member Author

Until this is fixed the reader for csv can be created without the mapping configuration. After creation the mapping can be added by adding the ColumnMappingDecorator with the mapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant