File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
All notable changes to this project will be documented in this file.
3
3
4
- ## v1.2.0 (2021-04-09 )
4
+ ## v1.2.2 (2021-04-16 )
5
5
***
6
- ### Added
7
- - Added PHPUnit 9 to requirements (Marc Prior) .
6
+ ### Fixed
7
+ - The mutator model was not set by default .
8
8
9
- ## v1.2.0 (2021-04-02)
9
+ ## v1.2.1 (2021-04-02)
10
10
***
11
11
### Added
12
12
- Added a new condition type: ` \Zahran\Mapper\Condition\Missing `
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ protected function applyMutators(Attribute $attribute): void
60
60
/** @var Mutator $mutatorModel */
61
61
foreach ($ attribute ->getMutators () as $ mutatorModel ) {
62
62
$ mutatorInstance = Container::getInstance ()->getMutator ($ mutatorModel );
63
+ $ mutatorInstance ->setModel ($ mutatorModel );
63
64
if (!is_array ($ value )) {
64
65
$ value = $ mutatorInstance ->apply ($ value , $ mutatorModel ->getArguments ());
65
66
}
You can’t perform that action at this time.
0 commit comments