Force loader to be null or a EntityLoaderInterface
This commit is contained in:
parent
9a2edb9a63
commit
82334d2640
@ -148,6 +148,10 @@ abstract class DoctrineType extends AbstractType
|
||||
$resolver->setNormalizers(array(
|
||||
'em' => $emNormalizer,
|
||||
));
|
||||
|
||||
$resolver->setAllowedTypes(array(
|
||||
'loader' => array('null', 'Symfony\Bridge\Doctrine\Form\ChoiceList\EntityLoaderInterface'),
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user