clean code

This commit is contained in:
Manuel Raynaud
2013-10-15 21:52:35 +02:00
parent fb4d44545d
commit 08776e5fc5

View File

@@ -89,17 +89,12 @@ class CustomerLogin extends BaseForm
}
}
$context->addViolation('toto');
$root = $context->getRoot();
$password = $root->get('password')->getPropertyPath();
$parent = $password->getParent();
//$propertyPath =
$context->getViolations()->add(new ConstraintViolation(
'failed password',
'toto',
array(),
$root,
$context->getRoot(),
'children[password].data',
'propertyPath'
));