src/OroCRM/Bundle/DemoDataBundle/Migrations/Data/Demo/ORM/LoadUsersData.php 1 location
|
@@ 66-76 (lines=11) @@
|
| 63 |
|
/** |
| 64 |
|
* @param ObjectManager $manager |
| 65 |
|
*/ |
| 66 |
|
protected function initSupportingEntities(ObjectManager $manager = null) |
| 67 |
|
{ |
| 68 |
|
if ($manager) { |
| 69 |
|
$this->em = $manager; |
| 70 |
|
} |
| 71 |
|
$this->organization = $this->getReference('default_organization'); |
| 72 |
|
$this->userManager = $this->container->get('oro_user.manager'); |
| 73 |
|
$this->role = $this->em->getRepository('OroUserBundle:Role')->findOneBy( |
| 74 |
|
array('role' => LoadRolesData::ROLE_MANAGER) |
| 75 |
|
); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
/** |
| 79 |
|
* {@inheritDoc} |
src/OroCRM/Bundle/DemoDataBundle/Migrations/Data/Demo/ORM/LoadLeadsData.php 1 location
|
@@ 88-97 (lines=10) @@
|
| 85 |
|
/** |
| 86 |
|
* @param ObjectManager $manager |
| 87 |
|
*/ |
| 88 |
|
protected function initSupportingEntities(ObjectManager $manager = null) |
| 89 |
|
{ |
| 90 |
|
if ($manager) { |
| 91 |
|
$this->em = $manager; |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
$this->users = $this->em->getRepository('OroUserBundle:User')->findAll(); |
| 95 |
|
$this->countries = $this->em->getRepository('OroAddressBundle:Country')->findAll(); |
| 96 |
|
$this->organization = $this->getReference('default_organization'); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
/** |
| 100 |
|
* @param ObjectManager $manager |