@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * Persist object |
247 | 247 | * |
248 | - * @param mixed $manager |
|
248 | + * @param EntityManager $manager |
|
249 | 249 | * @param mixed $object |
250 | 250 | */ |
251 | 251 | private function persist($manager, $object) |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | /** |
257 | 257 | * Flush objects |
258 | 258 | * |
259 | - * @param mixed $manager |
|
259 | + * @param EntityManager $manager |
|
260 | 260 | */ |
261 | 261 | private function flush($manager) |
262 | 262 | { |
@@ -3,27 +3,21 @@ |
||
3 | 3 | |
4 | 4 | use Symfony\Component\DependencyInjection\ContainerInterface; |
5 | 5 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
6 | - |
|
7 | 6 | use Doctrine\Common\DataFixtures\AbstractFixture; |
8 | 7 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
9 | 8 | use Doctrine\Common\Persistence\ObjectManager; |
10 | 9 | use Doctrine\Common\Collections\Collection; |
11 | - |
|
12 | 10 | use Doctrine\ORM\EntityManager; |
13 | - |
|
14 | 11 | use OroCRM\Bundle\AccountBundle\Entity\Account; |
15 | - |
|
16 | 12 | use Oro\Bundle\AddressBundle\Entity\Country; |
17 | 13 | use Oro\Bundle\AddressBundle\Entity\Region; |
18 | 14 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
19 | - |
|
20 | 15 | use OroCRM\Bundle\ContactBundle\Entity\Contact; |
21 | 16 | use OroCRM\Bundle\ContactBundle\Entity\Source; |
22 | 17 | use OroCRM\Bundle\ContactBundle\Entity\Group; |
23 | 18 | use OroCRM\Bundle\ContactBundle\Entity\ContactEmail; |
24 | 19 | use OroCRM\Bundle\ContactBundle\Entity\ContactPhone; |
25 | 20 | use OroCRM\Bundle\ContactBundle\Entity\ContactAddress; |
26 | - |
|
27 | 21 | use Oro\Bundle\UserBundle\Entity\User; |
28 | 22 | |
29 | 23 | class LoadContactData extends AbstractFixture implements ContainerAwareInterface, DependentFixtureInterface |
@@ -5,13 +5,10 @@ |
||
5 | 5 | use Doctrine\Common\DataFixtures\AbstractFixture; |
6 | 6 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
7 | 7 | use Doctrine\Common\Persistence\ObjectManager; |
8 | - |
|
9 | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
10 | 9 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
11 | - |
|
12 | 10 | use Oro\Bundle\EmbeddedFormBundle\Entity\EmbeddedForm; |
13 | 11 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
14 | - |
|
15 | 12 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
16 | 13 | use OroCRM\Bundle\ChannelBundle\Builder\BuilderFactory; |
17 | 14 | use OroCRM\Bundle\ContactUsBundle\Entity\ContactRequest; |
@@ -233,8 +233,8 @@ discard block |
||
233 | 233 | /** |
234 | 234 | * Persist object |
235 | 235 | * |
236 | - * @param mixed $manager |
|
237 | - * @param mixed $object |
|
236 | + * @param EntityManager $manager |
|
237 | + * @param Lead $object |
|
238 | 238 | */ |
239 | 239 | private function persist($manager, $object) |
240 | 240 | { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | /** |
245 | 245 | * Flush objects |
246 | 246 | * |
247 | - * @param mixed $manager |
|
247 | + * @param EntityManager $manager |
|
248 | 248 | */ |
249 | 249 | private function flush($manager) |
250 | 250 | { |
@@ -4,13 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\DependencyInjection\ContainerInterface; |
6 | 6 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
7 | - |
|
8 | 7 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
9 | 8 | use Doctrine\Common\DataFixtures\AbstractFixture; |
10 | 9 | use Doctrine\Common\Persistence\ObjectManager; |
11 | 10 | use Doctrine\Common\Collections\Collection; |
12 | 11 | use Doctrine\ORM\EntityManager; |
13 | - |
|
14 | 12 | use Oro\Bundle\AddressBundle\Entity\Address; |
15 | 13 | use Oro\Bundle\AddressBundle\Entity\Country; |
16 | 14 | use Oro\Bundle\AddressBundle\Entity\Region; |
@@ -6,9 +6,7 @@ |
||
6 | 6 | use Doctrine\Common\DataFixtures\AbstractFixture; |
7 | 7 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
8 | 8 | use Doctrine\Common\Persistence\ObjectManager; |
9 | - |
|
10 | 9 | use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; |
11 | - |
|
12 | 10 | use OroCRM\Bundle\MagentoBundle\Entity\Customer; |
13 | 11 | use OroCRM\Bundle\MagentoBundle\Entity\NewsletterSubscriber; |
14 | 12 |
@@ -3,12 +3,10 @@ |
||
3 | 3 | |
4 | 4 | use Symfony\Component\DependencyInjection\ContainerInterface; |
5 | 5 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
6 | - |
|
7 | 6 | use Doctrine\Common\DataFixtures\AbstractFixture; |
8 | 7 | use Doctrine\Common\Persistence\ObjectManager; |
9 | 8 | use Doctrine\ORM\EntityManager; |
10 | 9 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
11 | - |
|
12 | 10 | use Oro\Bundle\UserBundle\Entity\UserManager; |
13 | 11 | use Oro\Bundle\UserBundle\Entity\User; |
14 | 12 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * Persist object |
247 | 247 | * |
248 | - * @param mixed $manager |
|
248 | + * @param EntityManager $manager |
|
249 | 249 | * @param mixed $object |
250 | 250 | */ |
251 | 251 | private function persist($manager, $object) |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | /** |
257 | 257 | * Flush objects |
258 | 258 | * |
259 | - * @param mixed $manager |
|
259 | + * @param EntityManager $manager |
|
260 | 260 | */ |
261 | 261 | private function flush($manager) |
262 | 262 | { |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * Persist object |
93 | 93 | * |
94 | - * @param mixed $manager |
|
95 | - * @param mixed $object |
|
94 | + * @param EntityManager $manager |
|
95 | + * @param Report $object |
|
96 | 96 | */ |
97 | 97 | private function persist($manager, $object) |
98 | 98 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * Flush objects |
104 | 104 | * |
105 | - * @param mixed $manager |
|
105 | + * @param EntityManager $manager |
|
106 | 106 | */ |
107 | 107 | private function flush($manager) |
108 | 108 | { |
@@ -6,10 +6,8 @@ |
||
6 | 6 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
7 | 7 | use Oro\Bundle\ReportBundle\Entity\Report; |
8 | 8 | use Oro\Bundle\ReportBundle\Entity\ReportType; |
9 | - |
|
10 | 9 | use Doctrine\Common\DataFixtures\AbstractFixture; |
11 | 10 | use Doctrine\Common\Persistence\ObjectManager; |
12 | - |
|
13 | 11 | use Doctrine\ORM\EntityManager; |
14 | 12 | |
15 | 13 | class LoadReportData extends AbstractFixture implements DependentFixtureInterface |
@@ -273,7 +273,7 @@ |
||
273 | 273 | /** |
274 | 274 | * Flush objects |
275 | 275 | * |
276 | - * @param mixed $manager |
|
276 | + * @param EntityManager $manager |
|
277 | 277 | */ |
278 | 278 | private function flush($manager) |
279 | 279 | { |
@@ -5,20 +5,16 @@ |
||
5 | 5 | use Symfony\Component\DependencyInjection\ContainerInterface; |
6 | 6 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
7 | 7 | use Symfony\Component\Security\Core\SecurityContext; |
8 | - |
|
9 | 8 | use Doctrine\Common\Collections\Criteria; |
10 | 9 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
11 | 10 | use Doctrine\Common\DataFixtures\AbstractFixture; |
12 | 11 | use Doctrine\Common\Persistence\ObjectManager; |
13 | 12 | use Doctrine\ORM\EntityManager; |
14 | - |
|
15 | 13 | use Oro\Bundle\WorkflowBundle\Model\WorkflowManager; |
16 | 14 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowItem; |
17 | - |
|
18 | 15 | use OroCRM\Bundle\SalesBundle\Entity\Lead; |
19 | 16 | use OroCRM\Bundle\SalesBundle\Entity\Opportunity; |
20 | 17 | use OroCRM\Bundle\SalesBundle\Entity\SalesFunnel; |
21 | - |
|
22 | 18 | use Oro\Bundle\SecurityBundle\Authentication\Token\UsernamePasswordOrganizationToken; |
23 | 19 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
24 | 20 | use Oro\Bundle\UserBundle\Entity\User; |
@@ -132,7 +132,7 @@ |
||
132 | 132 | |
133 | 133 | /** |
134 | 134 | * @param ObjectManager $manager |
135 | - * @param $name |
|
135 | + * @param string $name |
|
136 | 136 | * @return BusinessUnit |
137 | 137 | */ |
138 | 138 | protected function getBusinessUnit(ObjectManager $manager, $name) |
@@ -7,10 +7,8 @@ |
||
7 | 7 | use Doctrine\Common\Persistence\ObjectManager; |
8 | 8 | use Doctrine\ORM\EntityRepository; |
9 | 9 | use Doctrine\ORM\EntityManager; |
10 | - |
|
11 | 10 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
12 | 11 | use Symfony\Component\DependencyInjection\ContainerInterface; |
13 | - |
|
14 | 12 | use Oro\Bundle\DataAuditBundle\Tests\Unit\Fixture\Repository\UserRepository; |
15 | 13 | use Oro\Bundle\TagBundle\Entity\TagManager; |
16 | 14 | use Oro\Bundle\OrganizationBundle\Entity\BusinessUnit; |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * @param string $firstName |
130 | 130 | * @param string $lastName |
131 | 131 | * @param \DateTime $birthday |
132 | - * @param mixed $role |
|
132 | + * @param Role $role |
|
133 | 133 | * @return User |
134 | 134 | */ |
135 | 135 | private function createUser($username, $email, $firstName, $lastName, $birthday, $role) |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | /** |
256 | 256 | * Persist object |
257 | 257 | * |
258 | - * @param mixed $object |
|
258 | + * @param User $object |
|
259 | 259 | * @return void |
260 | 260 | */ |
261 | 261 | private function persist($object) |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | } |
275 | 275 | |
276 | 276 | /** |
277 | - * @param $name |
|
277 | + * @param string $name |
|
278 | 278 | * @return BusinessUnit |
279 | 279 | */ |
280 | 280 | protected function getBusinessUnit($name) |
@@ -4,11 +4,9 @@ |
||
4 | 4 | use Doctrine\ORM\EntityManager; |
5 | 5 | use Symfony\Component\DependencyInjection\ContainerInterface; |
6 | 6 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
7 | - |
|
8 | 7 | use Doctrine\Common\DataFixtures\AbstractFixture; |
9 | 8 | use Doctrine\Common\Persistence\ObjectManager; |
10 | 9 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
11 | - |
|
12 | 10 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
13 | 11 | use Oro\Bundle\UserBundle\Entity\Role; |
14 | 12 | use Oro\Bundle\UserBundle\Entity\UserManager; |