@@ -99,7 +99,7 @@ |
||
99 | 99 | |
100 | 100 | /** |
101 | 101 | * @param \Datetime $createdAt |
102 | - * @return MarketingListItem |
|
102 | + * @return MarketingListRemovedItem |
|
103 | 103 | */ |
104 | 104 | public function setCreatedAt(\Datetime $createdAt) |
105 | 105 | { |
@@ -3,7 +3,6 @@ discard block |
||
3 | 3 | namespace OroCRM\Bundle\MarketingListBundle\Form\Handler; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use Symfony\Bridge\Doctrine\RegistryInterface; |
8 | 7 | use Symfony\Component\Form\FormError; |
9 | 8 | use Symfony\Component\Form\FormInterface; |
@@ -12,7 +11,6 @@ discard block |
||
12 | 11 | use Symfony\Component\Validator\Constraint; |
13 | 12 | use Symfony\Component\Validator\ConstraintViolationInterface; |
14 | 13 | use Symfony\Component\Validator\ValidatorInterface; |
15 | - |
|
16 | 14 | use Oro\Bundle\SegmentBundle\Entity\Segment; |
17 | 15 | use Oro\Bundle\SegmentBundle\Entity\SegmentType; |
18 | 16 | use OroCRM\Bundle\MarketingListBundle\Entity\MarketingList; |
@@ -80,7 +80,7 @@ |
||
80 | 80 | /** |
81 | 81 | * Get entity contact information fields. |
82 | 82 | * |
83 | - * @param string|object $entity |
|
83 | + * @param string $entity |
|
84 | 84 | * @return array |
85 | 85 | */ |
86 | 86 | public function getEntityContactInformationColumns($entity) |
@@ -60,7 +60,7 @@ |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
63 | - * @param string|object $entityOrClass |
|
63 | + * @param string $entityOrClass |
|
64 | 64 | * @param string|null $type |
65 | 65 | * @return array |
66 | 66 | */ |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\PropertyAccess; |
6 | 6 | use Symfony\Component\Security\Core\Util\ClassUtils; |
7 | - |
|
8 | 7 | use Oro\Bundle\QueryDesignerBundle\Model\AbstractQueryDesigner; |
9 | 8 | use OroCRM\Bundle\MarketingListBundle\Model\ContactInformationFieldHelper; |
10 | 9 | use OroCRM\Bundle\MarketingListBundle\Entity\MarketingList; |
@@ -4,14 +4,12 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\Query\Expr\From; |
6 | 6 | use Doctrine\ORM\QueryBuilder; |
7 | - |
|
8 | 7 | use Oro\Bundle\BatchBundle\ORM\Query\BufferedQueryResultIterator; |
9 | 8 | use Oro\Bundle\DataGridBundle\Datagrid\Builder; |
10 | 9 | use Oro\Bundle\DataGridBundle\Datagrid\DatagridInterface; |
11 | 10 | use Oro\Bundle\DataGridBundle\Datagrid\Manager; |
12 | 11 | use Oro\Bundle\DataGridBundle\Datasource\Orm\OrmDatasource; |
13 | 12 | use Oro\Bundle\DataGridBundle\Extension\Pager\PagerInterface; |
14 | - |
|
15 | 13 | use OroCRM\Bundle\MarketingListBundle\Entity\MarketingList; |
16 | 14 | use OroCRM\Bundle\MarketingListBundle\Datagrid\ConfigurationProvider; |
17 | 15 |
@@ -4,10 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use OroCRM\Bundle\MarketingListBundle\Entity\MarketingList; |
6 | 6 | use OroCRM\Bundle\MarketingListBundle\Entity\MarketingListType; |
7 | - |
|
8 | 7 | use Doctrine\Common\DataFixtures\AbstractFixture; |
9 | 8 | use Doctrine\Common\Persistence\ObjectManager; |
10 | - |
|
11 | 9 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
12 | 10 | use Symfony\Component\DependencyInjection\ContainerInterface; |
13 | 11 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MarketingListBundle\Tests\Unit\Acl\Voter; |
4 | 4 | |
5 | 5 | use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\EntityBundle\ORM\DoctrineHelper; |
8 | 7 | use OroCRM\Bundle\MarketingListBundle\Acl\Voter\MarketingListSegmentVoter; |
9 | 8 |
@@ -136,6 +136,10 @@ |
||
136 | 136 | $this->assertInstanceOf('\DateTime', $this->entity->getUpdatedAt()); |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param string $entityClass |
|
141 | + * @param string $entityShortName |
|
142 | + */ |
|
139 | 143 | protected function assertCollectionMethods($entityClass, $entityShortName) |
140 | 144 | { |
141 | 145 | $addMethodName = 'add' . $entityShortName; |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Symfony\Component\Translation\TranslatorInterface; |
10 | 10 | use Symfony\Component\Validator\ConstraintViolationList; |
11 | 11 | use Symfony\Component\Validator\ValidatorInterface; |
12 | - |
|
13 | 12 | use Oro\Bundle\SegmentBundle\Entity\SegmentType; |
14 | 13 | use Oro\Bundle\UserBundle\Entity\User; |
15 | 14 | use OroCRM\Bundle\MarketingListBundle\Entity\MarketingList; |