File tree 4 files changed +9
-0
lines changed
tests/AutoMapperTest/DeepPopulateMergeExisting 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting\FooAdder {
3
3
AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting\Bar {
4
4
-id: 1
5
5
+bar: "bar3"
6
+ +foo: "foo1"
6
7
}
7
8
AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting\Bar {
8
9
-id: 10
9
10
+bar: "bar4"
11
+ +foo: "default"
10
12
}
11
13
]
12
14
}
Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting\Foo {
3
3
AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting\Bar {
4
4
-id: 1
5
5
+bar: "bar3"
6
+ +foo: "foo1"
6
7
}
7
8
AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting\Bar {
8
9
-id: 10
9
10
+bar: "bar4"
11
+ +foo: "default"
10
12
}
11
13
]
12
14
}
Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting\FooWithArrayCollection
4
4
AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting\Bar {
5
5
-id: 1
6
6
+bar: "bar3"
7
+ +foo: "foo1"
7
8
}
8
9
AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting\Bar {
9
10
-id: 10
10
11
+bar: "bar4"
12
+ +foo: "default"
11
13
}
12
14
]
13
15
}
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ class Bar
15
15
16
16
public string $ bar ;
17
17
18
+ public string $ foo = 'default ' ;
19
+
18
20
public function setId (int $ id ): void
19
21
{
20
22
$ this ->id = $ id ;
@@ -76,6 +78,7 @@ class FooWithArrayCollection
76
78
77
79
$ bar1 = new Bar ();
78
80
$ bar1 ->bar = 'bar1 ' ;
81
+ $ bar1 ->foo = 'foo1 ' ;
79
82
$ bar1 ->setId (1 );
80
83
81
84
$ bar2 = new Bar ();
You can’t perform that action at this time.
0 commit comments