This commit is contained in:
2023-12-04 22:15:18 +08:00
parent 6bcbc9e2de
commit 013d570eb7
2 changed files with 28 additions and 7 deletions
+1
View File
@@ -46,6 +46,7 @@ class BindForm implements InjectParameterInterface
$validator->addRule($property->getName(), $rule);
}
}
$validator->setTypes($property->getName(), $property->getType());
if (!$property->hasDefaultValue()) {
$this->insertDefaultValue($property->getType(), $object, $property->getName());
}