Bug fixes

Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely
2012-07-31 10:14:26 +02:00
parent f21d48c6a8
commit b82eb93bf7
8 changed files with 41 additions and 34 deletions

View File

@@ -3,6 +3,7 @@ namespace KekRozsak\SecurityBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use KekRozsak\FrontBundle\Form\Type\UserDataType;
@@ -61,7 +62,7 @@ class UserType extends AbstractType
return 'user';
}
public function getDefaultOptions()
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$opts = array(
'data_class' => 'KekRozsak\SecurityBundle\Entity\User',
@@ -69,7 +70,7 @@ class UserType extends AbstractType
if ($this->_registration)
$opts['validation_groups'] = array('registration');
return $opts;
$resolver->setDefaults($opts);
}
}