Created
August 21, 2014 12:19
-
-
Save saksmt/8f5ca901ac748731ade7 to your computer and use it in GitHub Desktop.
Parent form type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ | |
$modelTransformer = new TagsTransformer($this->manager); | |
$tags = $this->manager->getRepository('ForaSoftImproveClassBundle:Tag')->findAll(); | |
$builder->add( | |
$builder->create('tags', 'genemu_jqueryselect2_hidden', array( | |
'configs' => array( | |
'tags' => $modelTransformer->extractStrings($tags), | |
'tokenSeparators' => array(' ', ',', ';'), | |
), | |
))->addModelTransformer($modelTransformer) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment