Skip to content

Commit

Permalink
Merge pull request #9 from kfi/master
Browse files Browse the repository at this point in the history
Symfony 3 support
  • Loading branch information
tetranz committed Feb 24, 2016
2 parents 011aaf6 + 5c645d4 commit bdf4b05
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Form/Type/Select2EntityType.php
Original file line number Diff line number Diff line change
@@ -103,7 +103,22 @@ public function configureOptions(OptionsResolver $resolver)
);
}

/**
* pre Symfony 3 compatibility
*
* @return string
*/
public function getName()
{
return $this->getBlockPrefix();
}

/**
* Symfony 2.8+
*
* @return string
*/
public function getBlockPrefix()
{
return 'tetranz_select2entity';
}

0 comments on commit bdf4b05

Please sign in to comment.