diff --git a/Form/Type/TypeaheadType.php b/Form/Type/TypeaheadType.php index bd6a034..a2f37cc 100644 --- a/Form/Type/TypeaheadType.php +++ b/Form/Type/TypeaheadType.php @@ -42,12 +42,14 @@ public function buildForm(FormBuilderInterface $builder, array $options) if ($options['multiple']) { $builder->addViewTransformer(new EntitiesToPropertyTransformer( $options['em'] ?: $this->em, - $options['class'] + $options['class'], + $options['property'] ), true); } else { $builder->addViewTransformer(new EntityToPropertyTransformer( $options['em'] ?: $this->em, - $options['class'] + $options['class'], + $options['property'] ), true); } }