eee
This commit is contained in:
@@ -45,7 +45,10 @@ class BindForm implements InjectParameterInterface
|
|||||||
$object = $validator->setFormData($reflect->newInstanceWithoutConstructor());
|
$object = $validator->setFormData($reflect->newInstanceWithoutConstructor());
|
||||||
foreach ($reflect->getProperties() as $property) {
|
foreach ($reflect->getProperties() as $property) {
|
||||||
$ignoring = $property->getAttributes(Ignoring::class);
|
$ignoring = $property->getAttributes(Ignoring::class);
|
||||||
if (count($ignoring) == 0) {
|
if (count($ignoring) > 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$binding = $property->getAttributes(Binding::class);
|
$binding = $property->getAttributes(Binding::class);
|
||||||
if (count($binding) == 1) {
|
if (count($binding) == 1) {
|
||||||
$attribute = current($binding);
|
$attribute = current($binding);
|
||||||
@@ -55,7 +58,7 @@ class BindForm implements InjectParameterInterface
|
|||||||
}
|
}
|
||||||
$validator->setAlias($attribute->getName(), $rule->field);
|
$validator->setAlias($attribute->getName(), $rule->field);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
$typeProxy = $this->_typeValidator($property);
|
$typeProxy = $this->_typeValidator($property);
|
||||||
$validator->addRule($property->getName(), [$typeProxy, false]);
|
$validator->addRule($property->getName(), [$typeProxy, false]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user