Form/Type/CenterType.php
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        if ($this->getParent() === 'hidden') {
            $builder->addModelTransformer($this->transformer);
        }
    }
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        if ($this->getParent() === 'hidden') {
            $builder->addModelTransformer($this->transformer);
        }
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { if ( $ this -> getParent ( ) === 'hidden' ) { $ builder -> addModelTransformer ( $ this -> transformer ) ; } }
add a data transformer if user can reach only one center

@param FormBuilderInterface $builder
@param array $options
add a data transformer if user can reach only one center