CategoryRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A findRootCategories() 0 8 1
1
<?php
2
3
namespace Actualys\Bundle\DrupalCommerceConnectorBundle\Entity\Repository;
4
5
use Pim\Bundle\CatalogBundle\Entity\Repository\CategoryRepository as BaseCategoryRepository;
6
7
class CategoryRepository extends BaseCategoryRepository
0 ignored issues
show
Deprecated Code introduced by
The class Pim\Bundle\CatalogBundle...tory\CategoryRepository 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 findRootCategories()
13
    {
14
        return $this
15
          ->createQueryBuilder('c')
16
          ->select('c')
17
          ->orderBy('c.left', 'ASC')
18
          ->where('c.level = 0');
19
    }
20
}
21