@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | // List users for project |
| 15 | 15 | $url = $this->client->getContainer()->get('router')->generate('projectenvironment_new', array('id' => $project->getId())); |
| 16 | 16 | $crawler = $this->client->request('GET', $url, array(), array(), array( |
| 17 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 17 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 18 | 18 | )); |
| 19 | 19 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$url); |
| 20 | 20 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | // List users for project |
| 50 | 50 | $url = $this->client->getContainer()->get('router')->generate('projectenvironment_existing', array('id' => $project->getId())); |
| 51 | 51 | $crawler = $this->client->request('GET', $url, array(), array(), array( |
| 52 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 52 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 53 | 53 | )); |
| 54 | 54 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET /userprojects/'); |
| 55 | 55 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | // List users for project |
| 81 | 81 | $url = $this->client->getContainer()->get('router')->generate('projectenvironment_clone', array('id' => $project->getId())); |
| 82 | 82 | $crawler = $this->client->request('GET', $url, array(), array(), array( |
| 83 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 83 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 84 | 84 | )); |
| 85 | 85 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET /userprojects/'); |
| 86 | 86 | |
@@ -14,14 +14,14 @@ discard block |
||
| 14 | 14 | // List Issue labels |
| 15 | 15 | $listLabelURL = $this->client->getContainer()->get('router')->generate('issuelabels', array('id' => $project->getId())); |
| 16 | 16 | $crawler = $this->client->request('GET', $listLabelURL, array(), array(), array( |
| 17 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 17 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 18 | 18 | )); |
| 19 | 19 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$listLabelURL); |
| 20 | 20 | |
| 21 | 21 | //Click New Issue Label Link |
| 22 | 22 | $newIssueLabelLink = $crawler->filter('a:contains("New Label")')->link(); |
| 23 | 23 | $crawler = $this->client->request($newIssueLabelLink->getMethod(), $newIssueLabelLink->getUri(), array(), array(), array( |
| 24 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 24 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 25 | 25 | )); |
| 26 | 26 | |
| 27 | 27 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$newIssueLabelLink->getUri()); |
@@ -39,10 +39,10 @@ discard block |
||
| 39 | 39 | // Check data in the show view |
| 40 | 40 | $this->assertGreaterThan(0, $crawler->filter('a:contains("Test Label")')->count(), 'Missing element a:contains("Test Label")'); |
| 41 | 41 | |
| 42 | - // Edit the issue label |
|
| 42 | + // Edit the issue label |
|
| 43 | 43 | $issueLabelEditLink = $crawler->filter('a:contains("Test Label")')->link(); |
| 44 | 44 | $crawler = $this->client->request($issueLabelEditLink->getMethod(), $issueLabelEditLink->getUri(), array(), array(), array( |
| 45 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 45 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 46 | 46 | )); |
| 47 | 47 | |
| 48 | 48 | $this->assertGreaterThan(0, $crawler->filter('h1:contains("Test Label")')->count(), 'Missing element h1:contains("Test Label") on Issue label show page'); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | //Click Delete link |
| 61 | 61 | $issueLabelDeleteLink = $crawler->filter('a:contains("Delete")')->link(); |
| 62 | 62 | $crawler = $this->client->request($issueLabelDeleteLink->getMethod(), $issueLabelDeleteLink->getUri(), array(), array(), array( |
| 63 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 63 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 64 | 64 | )); |
| 65 | 65 | $crawler = $this->client->followRedirect(); |
| 66 | 66 | $this->assertNotRegExp('/Test Label Edit/', $this->client->getResponse()->getContent()); |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | $url = $this->client->getContainer()->get('router')->generate('issues', array('id' => $project->getId())); |
| 16 | 16 | |
| 17 | 17 | $crawler = $this->client->request('GET', $url, array(), array(), array( |
| 18 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 18 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 19 | 19 | )); |
| 20 | 20 | //$this->assertEquals(302, $this->client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET ".$url); |
| 21 | 21 | //$crawler = $this->client->followRedirect(); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | $newIssueLink = $crawler->filter('.box-tools > form > .pull-right > a')->link(); |
| 25 | 25 | $crawler = $this->client->request($newIssueLink->getMethod(), $newIssueLink->getUri(), array(), array(), array( |
| 26 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 26 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 27 | 27 | )); |
| 28 | 28 | |
| 29 | 29 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$url); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | //Show Issue |
| 47 | 47 | $issueShowLink = $crawler->filter('a:contains("Test")')->link(); |
| 48 | 48 | $crawler = $this->client->request($issueShowLink->getMethod(), $issueShowLink->getUri(), array(), array(), array( |
| 49 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 49 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 50 | 50 | )); |
| 51 | 51 | |
| 52 | 52 | $this->assertGreaterThan(0, $crawler->filter('h1:contains("Test")')->count(), 'Missing element h1:contains("Test") on Issue show page'); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | // Edit the entity |
| 55 | 55 | $issueEditLink = $crawler->filter('a:contains("Edit")')->link(); |
| 56 | 56 | $crawler = $this->client->request($issueEditLink->getMethod(), $issueEditLink->getUri(), array(), array(), array( |
| 57 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 57 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 58 | 58 | )); |
| 59 | 59 | |
| 60 | 60 | $form = $crawler->selectButton('Update')->form(array( |
@@ -75,13 +75,13 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | //Back to Show Issue |
| 77 | 77 | $crawler = $this->client->request($issueShowLink->getMethod(), $issueShowLink->getUri(), array(), array(), array( |
| 78 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 78 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 79 | 79 | )); |
| 80 | 80 | |
| 81 | 81 | //Close Issue |
| 82 | 82 | $issueCloseLink = $crawler->filter('a:contains("Close")')->link(); |
| 83 | 83 | $crawler = $this->client->request($issueCloseLink->getMethod(), $issueCloseLink->getUri(), array(), array(), array( |
| 84 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 84 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 85 | 85 | )); |
| 86 | 86 | |
| 87 | 87 | $crawler = $this->client->followRedirect(); |
@@ -89,13 +89,13 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | //Back to Show Issue |
| 91 | 91 | $crawler = $this->client->request($issueShowLink->getMethod(), $issueShowLink->getUri(), array(), array(), array( |
| 92 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 92 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 93 | 93 | )); |
| 94 | 94 | |
| 95 | 95 | //Re-Open Issue |
| 96 | 96 | $issueReOpenLink = $crawler->filter('a:contains("Re-Open")')->link(); |
| 97 | 97 | $crawler = $this->client->request($issueReOpenLink->getMethod(), $issueReOpenLink->getUri(), array(), array(), array( |
| 98 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 98 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 99 | 99 | )); |
| 100 | 100 | |
| 101 | 101 | $crawler = $this->client->followRedirect(); |
@@ -14,14 +14,14 @@ discard block |
||
| 14 | 14 | // List Issue milestones |
| 15 | 15 | $listMilestoneURL = $this->client->getContainer()->get('router')->generate('issuemilestones', array('id' => $project->getId())); |
| 16 | 16 | $crawler = $this->client->request('GET', $listMilestoneURL, array(), array(), array( |
| 17 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 17 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 18 | 18 | )); |
| 19 | 19 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$listMilestoneURL); |
| 20 | 20 | |
| 21 | 21 | //Click New Issue Milestone Link |
| 22 | 22 | $newIssueMilestoneLink = $crawler->filter('a:contains("New Milestone")')->link(); |
| 23 | 23 | $crawler = $this->client->request($newIssueMilestoneLink->getMethod(), $newIssueMilestoneLink->getUri(), array(), array(), array( |
| 24 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 24 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 25 | 25 | )); |
| 26 | 26 | |
| 27 | 27 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$newIssueMilestoneLink->getUri()); |
@@ -41,10 +41,10 @@ discard block |
||
| 41 | 41 | $this->assertGreaterThan(0, $crawler->filter('h1:contains("Test Milestone")')->count(), 'Missing element h1:contains("Test Milestone")'); |
| 42 | 42 | $showUrl = $this->client->getRequest()->getUri(); |
| 43 | 43 | |
| 44 | - // Edit the issue milestone |
|
| 44 | + // Edit the issue milestone |
|
| 45 | 45 | $issueMilestoneEditLink = $crawler->filter('a:contains("Edit")')->link(); |
| 46 | 46 | $crawler = $this->client->request($issueMilestoneEditLink->getMethod(), $issueMilestoneEditLink->getUri(), array(), array(), array( |
| 47 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 47 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 48 | 48 | )); |
| 49 | 49 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for edit issue milestone'); |
| 50 | 50 | |
@@ -62,21 +62,21 @@ discard block |
||
| 62 | 62 | //Close Milestone |
| 63 | 63 | $issueMilestoneCloseLink = $crawler->filter('a:contains("Close")')->link(); |
| 64 | 64 | $crawler = $this->client->request($issueMilestoneCloseLink->getMethod(), $issueMilestoneCloseLink->getUri(), array(), array(), array( |
| 65 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 65 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 66 | 66 | )); |
| 67 | 67 | $crawler = $this->client->followRedirect(); |
| 68 | 68 | $this->assertNotRegExp('/Test Milestone Edit/', $this->client->getResponse()->getContent()); |
| 69 | 69 | |
| 70 | 70 | //Open Show Issue milestone again |
| 71 | 71 | $crawler = $this->client->request('GET', $showUrl, array(), array(), array( |
| 72 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 72 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 73 | 73 | )); |
| 74 | 74 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for edit issue milestone'); |
| 75 | 75 | |
| 76 | 76 | //Re-open Milestone |
| 77 | 77 | $issueMilestoneReOpenLink = $crawler->filter('a:contains("Re-open")')->link(); |
| 78 | 78 | $crawler = $this->client->request($issueMilestoneReOpenLink->getMethod(), $issueMilestoneReOpenLink->getUri(), array(), array(), array( |
| 79 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 79 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 80 | 80 | )); |
| 81 | 81 | $crawler = $this->client->followRedirect(); |
| 82 | 82 | $this->assertGreaterThan(0, $crawler->filter('.alert:contains("has been opened")')->count(), 'Missing element .alert:contains("successfully updated")'); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | //Close Milestone Again |
| 85 | 85 | $issueMilestoneCloseLink = $crawler->filter('a:contains("Close")')->link(); |
| 86 | 86 | $crawler = $this->client->request($issueMilestoneCloseLink->getMethod(), $issueMilestoneCloseLink->getUri(), array(), array(), array( |
| 87 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 87 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 88 | 88 | )); |
| 89 | 89 | $crawler = $this->client->followRedirect(); |
| 90 | 90 | $this->assertNotRegExp('/Test Milestone Edit/', $this->client->getResponse()->getContent()); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | // List users for project |
| 15 | 15 | $url = $this->client->getContainer()->get('router')->generate('members_list', array('id' => $project->getId())); |
| 16 | 16 | $crawler = $this->client->request('GET', $url, array(), array(), array( |
| 17 | - 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 17 | + 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
|
| 18 | 18 | )); |
| 19 | 19 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET /userprojects/'); |
| 20 | 20 | } |
@@ -174,19 +174,19 @@ discard block |
||
| 174 | 174 | return $this->findByProjectAndStatus($state, $keyword, $issueMilestoneId, true); |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | - /** |
|
| 178 | - * @param type $project |
|
| 179 | - * |
|
| 180 | - * @return int |
|
| 181 | - */ |
|
| 182 | - public function countIssuesForProjectWithStatus($status = 'open', $keyword = false, $milestone = null) |
|
| 183 | - { |
|
| 184 | - $qb = $this->findByProjectAndStatus($status, $keyword, $milestone, true); |
|
| 185 | - |
|
| 186 | - $qb->select('count(a)'); |
|
| 187 | - |
|
| 188 | - return $qb->getQuery()->getSingleScalarResult(); |
|
| 189 | - } |
|
| 177 | + /** |
|
| 178 | + * @param type $project |
|
| 179 | + * |
|
| 180 | + * @return int |
|
| 181 | + */ |
|
| 182 | + public function countIssuesForProjectWithStatus($status = 'open', $keyword = false, $milestone = null) |
|
| 183 | + { |
|
| 184 | + $qb = $this->findByProjectAndStatus($status, $keyword, $milestone, true); |
|
| 185 | + |
|
| 186 | + $qb->select('count(a)'); |
|
| 187 | + |
|
| 188 | + return $qb->getQuery()->getSingleScalarResult(); |
|
| 189 | + } |
|
| 190 | 190 | |
| 191 | 191 | public function findByProjectAndStatus($status = 'open', $keyword = false, $milestone = null, $queryOnly = false) |
| 192 | 192 | { |
@@ -197,29 +197,29 @@ discard block |
||
| 197 | 197 | $parameters = array('project' => $this->project); |
| 198 | 198 | |
| 199 | 199 | $qb->select('a') |
| 200 | - ->from('VersionControlGitControlBundle:Issue', 'a') |
|
| 201 | - ->where($where) |
|
| 202 | - ->setParameters($parameters); |
|
| 200 | + ->from('VersionControlGitControlBundle:Issue', 'a') |
|
| 201 | + ->where($where) |
|
| 202 | + ->setParameters($parameters); |
|
| 203 | 203 | |
| 204 | 204 | if ($status) { |
| 205 | 205 | $qb->andWhere( |
| 206 | - $qb->expr()->like('a.status', ':status') |
|
| 207 | - )->setParameter('status', $status); |
|
| 206 | + $qb->expr()->like('a.status', ':status') |
|
| 207 | + )->setParameter('status', $status); |
|
| 208 | 208 | } |
| 209 | - //If keyword is set |
|
| 210 | - if ($keyword) { |
|
| 211 | - $qb->andWhere( |
|
| 209 | + //If keyword is set |
|
| 210 | + if ($keyword) { |
|
| 211 | + $qb->andWhere( |
|
| 212 | 212 | $qb->expr()->orX( |
| 213 | 213 | $qb->expr()->like('a.title', ':keyword'), |
| 214 | 214 | $qb->expr()->like('a.description', ':keyword') |
| 215 | 215 | ) |
| 216 | 216 | )->setParameter('keyword', '%'.$keyword.'%'); |
| 217 | - } |
|
| 217 | + } |
|
| 218 | 218 | |
| 219 | 219 | if ($milestone != null) { |
| 220 | 220 | $qb->andWhere( |
| 221 | - $qb->expr()->eq('a.issueMilestone', ':milestone') |
|
| 222 | - )->setParameter('milestone', $milestone); |
|
| 221 | + $qb->expr()->eq('a.issueMilestone', ':milestone') |
|
| 222 | + )->setParameter('milestone', $milestone); |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | $qb->orderBy('a.updatedAt', 'desc'); |
@@ -20,16 +20,16 @@ |
||
| 20 | 20 | $qb = $em->createQueryBuilder(); |
| 21 | 21 | |
| 22 | 22 | $qb->select('a') |
| 23 | - ->from('VersionControlGitControlBundle:UserProjects', 'a') |
|
| 23 | + ->from('VersionControlGitControlBundle:UserProjects', 'a') |
|
| 24 | 24 | ->leftJoin('a.project', 'b') |
| 25 | 25 | ->where('a.user = :user') |
| 26 | 26 | ->setParameter('user', $user); |
| 27 | 27 | |
| 28 | - //If keyword is set |
|
| 29 | - if ($keyword) { |
|
| 30 | - $qb->andWhere(' b.title LIKE :keyword OR b.description LIKE :keyword ') |
|
| 31 | - ->setParameter('keyword', '%'.$keyword.'%'); |
|
| 32 | - } |
|
| 28 | + //If keyword is set |
|
| 29 | + if ($keyword) { |
|
| 30 | + $qb->andWhere(' b.title LIKE :keyword OR b.description LIKE :keyword ') |
|
| 31 | + ->setParameter('keyword', '%'.$keyword.'%'); |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | 34 | if ($queryOnly === true) { |
| 35 | 35 | return $qb; |
@@ -20,13 +20,13 @@ |
||
| 20 | 20 | $qb = $em->createQueryBuilder(); |
| 21 | 21 | |
| 22 | 22 | $qb->select('a') |
| 23 | - ->from('VersionControlGitControlBundle:Project', 'a'); |
|
| 23 | + ->from('VersionControlGitControlBundle:Project', 'a'); |
|
| 24 | 24 | |
| 25 | - //If keyword is set |
|
| 26 | - if ($keyword) { |
|
| 27 | - $qb->andWhere('a.title LIKE :keyword OR a.title LIKE :keyword') |
|
| 28 | - ->setParameter('keyword', '%'.$keyword.'%'); |
|
| 29 | - } |
|
| 25 | + //If keyword is set |
|
| 26 | + if ($keyword) { |
|
| 27 | + $qb->andWhere('a.title LIKE :keyword OR a.title LIKE :keyword') |
|
| 28 | + ->setParameter('keyword', '%'.$keyword.'%'); |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | 31 | if ($queryOnly === true) { |
| 32 | 32 | return $qb; |
@@ -190,19 +190,19 @@ discard block |
||
| 190 | 190 | return $issueMilestone; |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - /** |
|
| 194 | - * @param type $project |
|
| 195 | - * |
|
| 196 | - * @return int |
|
| 197 | - */ |
|
| 198 | - public function countForProjectWithStatus($status = 'open') |
|
| 199 | - { |
|
| 200 | - $qb = $this->findByProjectAndStatus($status, true); |
|
| 193 | + /** |
|
| 194 | + * @param type $project |
|
| 195 | + * |
|
| 196 | + * @return int |
|
| 197 | + */ |
|
| 198 | + public function countForProjectWithStatus($status = 'open') |
|
| 199 | + { |
|
| 200 | + $qb = $this->findByProjectAndStatus($status, true); |
|
| 201 | 201 | |
| 202 | - $qb->select('count(a)'); |
|
| 202 | + $qb->select('count(a)'); |
|
| 203 | 203 | |
| 204 | - return $qb->getQuery()->getSingleScalarResult(); |
|
| 205 | - } |
|
| 204 | + return $qb->getQuery()->getSingleScalarResult(); |
|
| 205 | + } |
|
| 206 | 206 | |
| 207 | 207 | public function findByProjectAndStatus($status = 'open', $queryOnly = false) |
| 208 | 208 | { |
@@ -213,14 +213,14 @@ discard block |
||
| 213 | 213 | $parameters = array('project' => $this->project); |
| 214 | 214 | |
| 215 | 215 | $qb->select('a') |
| 216 | - ->from('VersionControlGitControlBundle:IssueMilestone', 'a') |
|
| 217 | - ->where($where) |
|
| 218 | - ->setParameters($parameters); |
|
| 216 | + ->from('VersionControlGitControlBundle:IssueMilestone', 'a') |
|
| 217 | + ->where($where) |
|
| 218 | + ->setParameters($parameters); |
|
| 219 | 219 | |
| 220 | 220 | if ($status) { |
| 221 | 221 | $qb->andWhere( |
| 222 | 222 | $qb->expr()->like('a.state', ':status') |
| 223 | - )->setParameter('status', $status); |
|
| 223 | + )->setParameter('status', $status); |
|
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | if ($queryOnly === true) { |