Skip to content

Commit

Permalink
added 'property' to data transformer.
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo101 committed Dec 24, 2013
1 parent e406945 commit d4cc547
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Form/Type/TypeaheadType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit d4cc547

Please sign in to comment.