I just need to add other defaults options to an "entity field" in Symfony2. It displays names, and I need an option "Name not in list", but I cant find a way to achieve it. Data transformers cant seem to fix my problem though.
$builder
->add('family', 'entity', array(
'class' => 'InterneFichierBundle:Family',
'property' => 'Name'
))
If the name of the family is not in the list, there should be an option "name not in list".. Thanks a lot !