There was an error while loading. Please reload this page.
1 parent fb412ca commit c258213Copy full SHA for c258213
1 file changed
src/Mapping/Driver/ReflectionDriver.php
@@ -40,6 +40,11 @@ protected function load(
40
$this->fillDefaultValue($property, $metadata);
41
}
42
43
+ $this->loadParametersFor($class, $reflection);
44
+ }
45
+
46
+ private function loadParametersFor(ClassMetadata $class, \ReflectionClass $reflection): void
47
+ {
48
$constructor = $reflection->getConstructor();
49
50
if ($constructor === null) {
@@ -57,6 +62,12 @@ protected function load(
57
62
$metadata->setDefaultValue($parameter->getDefaultValue());
58
63
59
64
65
66
+ $parent = $reflection->getParentClass();
67
68
+ if ($parent instanceof \ReflectionClass) {
69
+ $this->loadParametersFor($class, $parent);
70
60
71
61
72
73
private function fillDefaultValue(\ReflectionProperty $property, PropertyMetadata $meta): void
0 commit comments