This commit is contained in:
2023-12-15 18:52:12 +08:00
parent bbe60d9ea2
commit ca6bac85e8
2 changed files with 24 additions and 4 deletions
+3 -1
View File
@@ -51,8 +51,10 @@ class BindForm implements InjectParameterInterface
if ($rule instanceof RequestFilterInterface) {
$validator->addRule($property->getName(), $rule->dispatch($object, $property->getName()));
}
if ($rule instanceof Binding) {
$validator->setAlias($attribute->getName(), $rule->field);
}
}
$typeProxy = $this->_typeValidator($property);
$validator->addRule($property->getName(), [$typeProxy, false]);
}