From d1acc6a63c004ff62170c20e5469d9dbba95c915 Mon Sep 17 00:00:00 2001 From: baptiste Date: Wed, 22 Feb 2017 14:24:55 +0100 Subject: [PATCH] add default value in template add comment to explain nullable --- Entity/WidgetForm.php | 1 + Resources/views/show.html.twig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Entity/WidgetForm.php b/Entity/WidgetForm.php index 4e609c7..554ecd3 100644 --- a/Entity/WidgetForm.php +++ b/Entity/WidgetForm.php @@ -134,6 +134,7 @@ class WidgetForm extends Widget /** * @var string * + * Nullable for not break with old install but it's required in form and default value is set in template * @ORM\Column(name="submit_class", type="string", length=255, nullable=true) * @Assert\NotBlank() */ diff --git a/Resources/views/show.html.twig b/Resources/views/show.html.twig index 038f540..ff054ca 100644 --- a/Resources/views/show.html.twig +++ b/Resources/views/show.html.twig @@ -131,7 +131,7 @@ {% endfor %} -