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

Fix for alias mapping bug #258

Merged
merged 2 commits into from
Jan 18, 2018
Merged

Conversation

FlipEverything
Copy link
Contributor

lib/Mapper.php

If we have an entity defined with field alias mapping then in the $data array the value will be referenced by the aliased name. After the array_intersect_key($data, $fields) filter it seems that the aliased column is not in the entity definition, but that is not true.

I provided tests for this bug in my first commit and after applying my patch in the second commit the tests passed successfully.

You can find more details inside the mentioned issues (#237, #145).

@vlucas vlucas merged commit a2787a4 into spotorm:master Jan 18, 2018
@FlipEverything FlipEverything deleted the alias_mapping_bug branch August 23, 2018 06:33
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

Successfully merging this pull request may close these issues.

2 participants