From b419921fe1e2dc4afd877a21da8369c12f8211a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 14 Nov 2014 12:00:14 +0100 Subject: [PATCH] use the new select2_chill_country type for types [ci skip] --- Form/PersonType.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Form/PersonType.php b/Form/PersonType.php index 205fd668b..589a1bb8d 100644 --- a/Form/PersonType.php +++ b/Form/PersonType.php @@ -27,13 +27,11 @@ class PersonType extends AbstractType )) ->add('memo', 'textarea', array('required' => false)) ->add('email', 'textarea', array('required' => false)) - ->add('countryOfBirth', 'entity', array( - 'required' => false, - 'class' => 'Chill\MainBundle\Entity\Country' + ->add('countryOfBirth', 'select2_chill_country', array( + 'required' => false )) - ->add('nationality', 'entity', array( - 'required' => false, - 'class' => 'Chill\MainBundle\Entity\Country' + ->add('nationality', 'select2_chill_country', array( + 'required' => false )) ; }