File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2705,8 +2705,7 @@ protected function objectToArray($object)
2705
2705
$ array = [];
2706
2706
2707
2707
foreach (get_object_vars ($ object ) as $ key => $ val ) {
2708
- // There are some built in keys we need to ignore for this conversion
2709
- if (! is_object ($ val ) && ! is_array ($ val ) && $ key !== '_parent_name ' ) {
2708
+ if (! is_object ($ val ) && ! is_array ($ val )) {
2710
2709
$ array [$ key ] = $ val ;
2711
2710
}
2712
2711
}
@@ -2732,13 +2731,10 @@ protected function batchObjectToArray($object)
2732
2731
$ fields = array_keys ($ out );
2733
2732
2734
2733
foreach ($ fields as $ val ) {
2735
- // There are some built in keys we need to ignore for this conversion
2736
- if ($ val !== '_parent_name ' ) {
2737
- $ i = 0 ;
2734
+ $ i = 0 ;
2738
2735
2739
- foreach ($ out [$ val ] as $ data ) {
2740
- $ array [$ i ++][$ val ] = $ data ;
2741
- }
2736
+ foreach ($ out [$ val ] as $ data ) {
2737
+ $ array [$ i ++][$ val ] = $ data ;
2742
2738
}
2743
2739
}
2744
2740
You can’t perform that action at this time.
0 commit comments