2013-04-26 93 views

回答

1

設置的默認選項的形式類型

public function setDefaultOptions(OptionsResolverInterface $resolver) 
{ 
    $resolver->setDefaults(array(
       [...], 
       'validation_groups' => array(
         'Registration' 
       ), 
     )); 
}