Completed
Push — master ( a1c3b0...85df90 )
by Patrick
21:41
created

CharMailMessageRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A loadMessagesWithoutBody() 0 13 1
1
<?php
2
namespace Tarioch\EveapiFetcherBundle\Entity;
3
4
use Doctrine\ORM\EntityRepository;
5
6
class CharMailMessageRepository extends EntityRepository
7
{
8
    public function loadMessagesWithoutBody($ownerId)
9
    {
10
        $qb = $this->createQueryBuilder('m');
11
        $q = $qb->select('m')
12
            ->where(
13
                'm.body is null
14
                and m.ownerId=:ownerId'
15
            )
16
            ->setParameter('ownerId', $ownerId)
17
            ->getQuery();
18
19
        return $q->getResult();
20
    }
21
}
22