Completed
Branch admin-customers (cfcc56)
by Serhii
10:45
created

UserRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A removeUserIntoSoftDeleTeable() 0 9 1
1
<?php
2
3
namespace AppBundle\Repository;
4
5
class UserRepository extends \Doctrine\ORM\EntityRepository
6
{
7
    /**
8
     * @param string $apiKey
9
     */
10
    public function removeUserIntoSoftDeleTeable($apiKey)
11
    {
12
        $this->createQueryBuilder('u')
13
            ->delete()
14
            ->where('u = :param')
15
            ->setParameter(':param', $apiKey)
16
            ->getQuery()
17
            ->execute();
18
    }
19
}
20