File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,7 @@ protected function mapEntity(string $entityClassName): array
395
395
$ isArray = false ;
396
396
$ isBool = false ;
397
397
$ isClass = false ;
398
+ $ isMixed = false ;
398
399
399
400
$ isNullable = false ;
400
401
@@ -444,6 +445,11 @@ protected function mapEntity(string $entityClassName): array
444
445
445
446
} elseif (strtolower ($ varDatatype ) === 'null ' ) {
446
447
$ isNullable = true ;
448
+
449
+ } elseif (strtolower ($ varDatatype ) === 'mixed ' ) {
450
+ $ isMixed = true ;
451
+
452
+ $ typesFound ++;
447
453
}
448
454
}
449
455
@@ -547,6 +553,15 @@ protected function mapEntity(string $entityClassName): array
547
553
$ isRequired ,
548
554
$ isWritable
549
555
);
556
+
557
+ } elseif ($ isMixed ) {
558
+ $ fields [] = new Hydrators \Fields \MixedField (
559
+ $ isNullable ,
560
+ $ mappedKey ,
561
+ $ fieldName ,
562
+ $ isRequired ,
563
+ $ isWritable
564
+ );
550
565
}
551
566
}
552
567
}
You can’t perform that action at this time.
0 commit comments