-
Notifications
You must be signed in to change notification settings - Fork 41
Bugfix: ClassMethods strategies tied to original name #45
Bugfix: ClassMethods strategies tied to original name #45
Conversation
d718ebd
to
5f2d156
Compare
5f2d156
to
d3fad8a
Compare
Waiting for opinions on #46 |
@BreyndotEchse Thanks! |
Cannot help you at the moment (vacation). You might take a look on @boesing's PR BreyndotEchse#1 in the meantime. |
Then I will not disturb you!
Great. Thank you! |
@froschdesign Within my PR, I'd to change the |
Bugfix for strategies used in hydrators with naming strategy
The PHPUnit dependency should be raised to at least v5.2 even if this does not affect the problem. |
Yah, until then, the unit tests may fail. I dont expect this to get merged with failed unit tests. |
I dont have any problems with that either. Just wanted to say that former PR got declined because tests failed which didn't caused by the changes of those PR. |
…-name Bugfix: ClassMethods strategies tied to original name
Thanks, @BreyndotEchse |
Thanks, @boesing :) |
All hydrators hydrate values by calling
$this->hydrateValue($this->hydrateName($originalName, $data), $value, $data)
(simplified).Only ClassMethods calls
hydrateValue
with the original array key passed tohydrate
:$this->hydrateValue($originalName, $value, $data)
(simplified)