Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
Bring back support for PHP5.4 class notation in Admin class
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
Pierstoval committed Mar 2, 2015
1 parent cdb120b commit 51ebcaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Admin/TranslationAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ protected function configureFormFields(FormMapper $formMapper) {

protected function configureDatagridFilters(DatagridMapper $datagridMapper) {

$domains = $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(Translation::class)->getDomains();
$domains = $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository('Pierstoval\Bundle\TranslationBundle\Entity\Translation')->getDomains();
$domains = array_combine($domains, $domains);

$locales = $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(Translation::class)->getLocales();
$locales = $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository('Pierstoval\Bundle\TranslationBundle\Entity\Translation')->getLocales();
$locales = array_combine($locales, $locales);

$datagridMapper
Expand Down

0 comments on commit 51ebcaa

Please sign in to comment.