mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
replace more doctrine shortcuts by fqdn
This commit is contained in:
@@ -11,6 +11,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Command;
|
||||
|
||||
use Chill\MainBundle\Entity\Country;
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
@@ -87,7 +88,7 @@ class LoadCountriesCommand extends Command
|
||||
$em = $this->entityManager;
|
||||
|
||||
foreach ($countries as $country) {
|
||||
$countryStored = $em->getRepository('ChillMainBundle:Country')
|
||||
$countryStored = $em->getRepository(Country::class)
|
||||
->findOneBy(['countryCode' => $country->getCountryCode()]);
|
||||
|
||||
if (null === $countryStored) {
|
||||
|
Reference in New Issue
Block a user