@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | { |
| 56 | 56 | $qb = $this->createQueryBuilder(); |
| 57 | 57 | $qb->hydrate(false) |
| 58 | - ->select('applyId') |
|
| 59 | - ->field('applyId')->equals($applyId); |
|
| 58 | + ->select('applyId') |
|
| 59 | + ->field('applyId')->equals($applyId); |
|
| 60 | 60 | |
| 61 | 61 | $result = $qb->getQuery()->execute(); |
| 62 | 62 | $count = $result->count(); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $qb = $this->createQueryBuilder(); |
| 137 | 137 | $qb->distinct('organization') |
| 138 | 138 | ->hydrate(true) |
| 139 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
| 139 | + ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
| 140 | 140 | |
| 141 | 141 | $q = $qb->getQuery(); |
| 142 | 142 | $r = $q->execute(); |
@@ -206,8 +206,8 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | if (null !== $isDeleted) { |
| 208 | 208 | $qb->addAnd( |
| 209 | - $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted)) |
|
| 210 | - ->addOr($qb->expr()->field('isDeleted')->exists(false)) |
|
| 209 | + $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted)) |
|
| 210 | + ->addOr($qb->expr()->field('isDeleted')->exists(false)) |
|
| 211 | 211 | ); |
| 212 | 212 | } |
| 213 | 213 | |
@@ -129,10 +129,10 @@ |
||
| 129 | 129 | // ) |
| 130 | 130 | // ); |
| 131 | 131 | $qb->addAnd($qb->expr()->field('user')->equals($userId)) |
| 132 | - ->addAnd( |
|
| 133 | - $qb->expr()->addOr($qb->expr()->field('parent')->exists(false)) |
|
| 134 | - ->addOr($qb->expr()->field('parent')->equals(null)) |
|
| 135 | - ); |
|
| 132 | + ->addAnd( |
|
| 133 | + $qb->expr()->addOr($qb->expr()->field('parent')->exists(false)) |
|
| 134 | + ->addOr($qb->expr()->field('parent')->equals(null)) |
|
| 135 | + ); |
|
| 136 | 136 | |
| 137 | 137 | $q = $qb->getQuery(); |
| 138 | 138 | $entity = $q->getSingleResult(); |