AttributeRepository::findMultiValuedOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
3
namespace Actualys\Bundle\DrupalCommerceConnectorBundle\Entity\Repository;
4
5
use Pim\Bundle\CatalogBundle\Entity\Repository\AttributeRepository as BaseAttributeRepository;
6
7
class AttributeRepository extends BaseAttributeRepository
0 ignored issues
show
Deprecated Code introduced by
The class Pim\Bundle\CatalogBundle...ory\AttributeRepository has been deprecated with message: will be moved to Pim\Bundle\CatalogBundle\Doctrine\ORM\Repository in 1.4

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
8
{
9
    /**
10
     * @return \Doctrine\ORM\QueryBuilder
11
     */
12
    public function findMultiValuedOptions()
13
    {
14
        return $this
15
          ->createQueryBuilder('c')
16
          ->select('c')
17
          ->where('c.attributeType IN(:param1, :param2)')
18
          ->setParameters(
19
            array(
20
              'param1' => 'pim_catalog_multiselect',
21
              'param2' => 'pim_catalog_simpleselect',
22
            )
23
          );
24
    }
25
}
26