File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/Mapping/Settings/Mapping Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ public function toArray(): array
4646 $ fields [$ field ->key ()] = $ field ->toArray ();
4747 continue ;
4848 }
49+ if ($ field instanceof \Spameri \ElasticQuery \Mapping \Settings \Mapping \NestedObject) {
50+ $ fields [$ field ->key ()] = $ field ->toArray ();
51+ continue ;
52+ }
4953
5054 $ fields [$ field ->key ()] = $ field ->toArray ()[$ field ->key ()];
5155 }
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ public function toArray(): array
4545 $ fields [$ field ->key ()] = $ field ->toArray ();
4646 continue ;
4747 }
48+ if ($ field instanceof \Spameri \ElasticQuery \Mapping \Settings \Mapping \NestedObject) {
49+ $ fields [$ field ->key ()] = $ field ->toArray ();
50+ continue ;
51+ }
4852
4953 $ fields [$ field ->key ()] = $ field ->toArray ()[$ field ->key ()];
5054 }
You can’t perform that action at this time.
0 commit comments