mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
replace more doctrine shortcuts by fqdn
This commit is contained in:
@@ -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]);
|
||||
|
@@ -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'; }
|
||||
);
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user