replace more doctrine shortcuts by fqdn

This commit is contained in:
2022-04-30 00:35:11 +02:00
parent a0392b9216
commit 864e1eeabb
19 changed files with 39 additions and 33 deletions

View File

@@ -246,7 +246,7 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
case 'person_countryOfBirth':
case 'person_nationality':
$countryRepository = $this->em
->getRepository('ChillMainBundle:Country');
->getRepository(\Chill\MainBundle\Entity\Country::class);
// load all countries in a single query
$countryRepository->findBy(['countryCode' => $values]);

View File

@@ -65,7 +65,7 @@ final class TimelineProviderTest extends WebTestCase
$scopesSocial = array_filter(
self::$em
->getRepository('ChillMainBundle:Scope')
->getRepository(\Chill\MainBundle\Entity\Scope::class)
->findAll(),
static function (Scope $scope) { return $scope->getName()['en'] === 'social'; }
);

View File

@@ -72,7 +72,7 @@ class Version20150622233319 extends AbstractMigration implements ContainerAwareI
//add a default scope
$scopes = $this->container->get('doctrine.orm.default_entity_manager')
->getRepository('ChillMainBundle:Scope')
->getRepository(\Chill\MainBundle\Entity\Scope::class)
->findAll();
if (count($scopes) > 0) {