Completed
Pull Request — master (#14)
by
unknown
45:37 queued 20:42
created

MailMessageRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A CharMailMessageRepository::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