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

loadMessagesWithoutBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 13
rs 9.4286
cc 1
eloc 8
nc 1
nop 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