Form/Doctrine/EntityHiddenType.php
public function buildForm(FormBuilderInterface $builder, array $options) {
        /** @var ClassAwareDataTransformerInterface $entityTransformer */
        $entityTransformer = new $options['transformer']($this->om, $options['class']);
        $builder->addModelTransformer($entityTransformer);
    }
public function buildForm(FormBuilderInterface $builder, array $options) {
        /** @var ClassAwareDataTransformerInterface $entityTransformer */
        $entityTransformer = new $options['transformer']($this->om, $options['class']);
        $builder->addModelTransformer($entityTransformer);
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { /** @var ClassAwareDataTransformerInterface $entityTransformer */ $ entityTransformer = new $ options [ 'transformer' ] ( $ this -> om , $ options [ 'class' ] ) ; $ builder -> addModelTransformer ( $ entityTransformer ) ; }
Add the data transformer to the field setting the entity repository
@param FormBuilderInterface $builder
@param array $options
Add the data transformer to the field setting the entity repository