retrieve form error in front office

This commit is contained in:
Manuel Raynaud
2013-07-01 11:10:52 +02:00
parent a14d3da90a
commit 3b5b29c6e0
8 changed files with 58 additions and 18 deletions

View File

@@ -46,7 +46,7 @@ class Customer implements EventSubscriberInterface
if ($form->isValid()) {
echo "ok"; exit;
} else {
echo "ko"; exit;
$event->setFormError($form);
}
}
}