mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
replace some entity shortcut by fqdn
* ChillPerson:Person * ChillMain:Center * ChillActivity:Activity
This commit is contained in:
@@ -15,6 +15,7 @@ use Chill\EventBundle\Entity\Event;
|
||||
use Chill\EventBundle\Entity\Participation;
|
||||
use Chill\MainBundle\DataFixtures\ORM\LoadScopes;
|
||||
use Chill\MainBundle\Entity\Center;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
@@ -64,11 +65,11 @@ class LoadParticipation extends AbstractFixture implements OrderedFixtureInterfa
|
||||
|
||||
public function load(ObjectManager $manager)
|
||||
{
|
||||
$centers = $manager->getRepository('ChillMainBundle:Center')
|
||||
$centers = $manager->getRepository(Center::class)
|
||||
->findAll();
|
||||
|
||||
foreach ($centers as $center) {
|
||||
$people = $manager->getRepository('ChillPersonBundle:Person')
|
||||
$people = $manager->getRepository(Person::class)
|
||||
->findBy(['center' => $center]);
|
||||
$events = $this->createEvents($center, $manager);
|
||||
|
||||
|
Reference in New Issue
Block a user