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

UserRepository::removeUserIntoSoftDeleTeable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 9
rs 9.6666
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