@@ -119,9 +119,9 @@ discard block |
||
| 119 | 119 | $this->putTripAroundEurope(); |
| 120 | 120 | |
| 121 | 121 | $dql = 'SELECT t, p, c ' |
| 122 | - . 'FROM Doctrine\Tests\Models\Navigation\NavTour t ' |
|
| 123 | - . 'INNER JOIN t.pois p ' |
|
| 124 | - . 'INNER JOIN p.country c'; |
|
| 122 | + . 'FROM Doctrine\Tests\Models\Navigation\NavTour t ' |
|
| 123 | + . 'INNER JOIN t.pois p ' |
|
| 124 | + . 'INNER JOIN p.country c'; |
|
| 125 | 125 | |
| 126 | 126 | $query = $this->em->createQuery($dql); |
| 127 | 127 | $tours = $query->getResult(); |
@@ -141,9 +141,9 @@ discard block |
||
| 141 | 141 | $this->putTripAroundEurope(); |
| 142 | 142 | |
| 143 | 143 | $dql = 'SELECT t ' |
| 144 | - . 'FROM Doctrine\Tests\Models\Navigation\NavTour t ' |
|
| 145 | - . ', Doctrine\Tests\Models\Navigation\NavPointOfInterest p ' |
|
| 146 | - . 'WHERE p MEMBER OF t.pois'; |
|
| 144 | + . 'FROM Doctrine\Tests\Models\Navigation\NavTour t ' |
|
| 145 | + . ', Doctrine\Tests\Models\Navigation\NavPointOfInterest p ' |
|
| 146 | + . 'WHERE p MEMBER OF t.pois'; |
|
| 147 | 147 | |
| 148 | 148 | $query = $this->em->createQuery($dql); |
| 149 | 149 | $tours = $query->getResult(); |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | public function testBulkUpdateIssueDDC368() : void |
| 327 | 327 | { |
| 328 | 328 | $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.salary = 1') |
| 329 | - ->execute(); |
|
| 329 | + ->execute(); |
|
| 330 | 330 | |
| 331 | 331 | $query = $this->em->createQuery('SELECT count(p.id) FROM ' . CompanyEmployee::class . ' p WHERE p.salary = 1'); |
| 332 | 332 | $result = $query->getResult(); |
@@ -344,9 +344,9 @@ discard block |
||
| 344 | 344 | public function testBulkUpdateNonScalarParameterDDC1341() : void |
| 345 | 345 | { |
| 346 | 346 | $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.startDate = ?0 WHERE p.department = ?1') |
| 347 | - ->setParameter(0, new DateTime()) |
|
| 348 | - ->setParameter(1, 'IT') |
|
| 349 | - ->execute(); |
|
| 347 | + ->setParameter(0, new DateTime()) |
|
| 348 | + ->setParameter(1, 'IT') |
|
| 349 | + ->execute(); |
|
| 350 | 350 | |
| 351 | 351 | self::addToAssertionCount(1); |
| 352 | 352 | } |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | public function testAggregateWithHavingClause() : void |
| 28 | 28 | { |
| 29 | 29 | $dql = 'SELECT p.department, AVG(p.salary) AS avgSalary ' . |
| 30 | - 'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' . |
|
| 31 | - 'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department'; |
|
| 30 | + 'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' . |
|
| 31 | + 'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department'; |
|
| 32 | 32 | |
| 33 | 33 | $result = $this->em->createQuery($dql)->getScalarResult(); |
| 34 | 34 | |
@@ -42,8 +42,8 @@ discard block |
||
| 42 | 42 | public function testUnnamedScalarResultsAreOneBased() : void |
| 43 | 43 | { |
| 44 | 44 | $dql = 'SELECT p.department, AVG(p.salary) ' . |
| 45 | - 'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' . |
|
| 46 | - 'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department'; |
|
| 45 | + 'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' . |
|
| 46 | + 'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department'; |
|
| 47 | 47 | |
| 48 | 48 | $result = $this->em->createQuery($dql)->getScalarResult(); |
| 49 | 49 | |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | public function testOrderByResultVariableCollectionSize() : void |
| 56 | 56 | { |
| 57 | 57 | $dql = 'SELECT p.name, size(p.friends) AS friends ' . |
| 58 | - 'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' . |
|
| 59 | - 'WHERE p.friends IS NOT EMPTY ' . |
|
| 60 | - 'ORDER BY friends DESC, p.name DESC'; |
|
| 58 | + 'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' . |
|
| 59 | + 'WHERE p.friends IS NOT EMPTY ' . |
|
| 60 | + 'ORDER BY friends DESC, p.name DESC'; |
|
| 61 | 61 | |
| 62 | 62 | $result = $this->em->createQuery($dql)->getScalarResult(); |
| 63 | 63 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | public function testIsNullAssociation() : void |
| 80 | 80 | { |
| 81 | 81 | $dql = 'SELECT p FROM Doctrine\Tests\Models\Company\CompanyPerson p ' . |
| 82 | - 'WHERE p.spouse IS NULL'; |
|
| 82 | + 'WHERE p.spouse IS NULL'; |
|
| 83 | 83 | $query = $this->em->createQuery($dql); |
| 84 | 84 | $result = $query->getResult(); |
| 85 | 85 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | public function testSelectSubselect() : void |
| 99 | 99 | { |
| 100 | 100 | $dql = 'SELECT p, (SELECT c.brand FROM Doctrine\Tests\Models\Company\CompanyCar c WHERE p.car = c) brandName ' . |
| 101 | - 'FROM Doctrine\Tests\Models\Company\CompanyManager p'; |
|
| 101 | + 'FROM Doctrine\Tests\Models\Company\CompanyManager p'; |
|
| 102 | 102 | $query = $this->em->createQuery($dql); |
| 103 | 103 | $result = $query->getArrayResult(); |
| 104 | 104 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | public function testInSubselect() : void |
| 114 | 114 | { |
| 115 | 115 | $dql = 'SELECT p.name FROM Doctrine\Tests\Models\Company\CompanyPerson p ' . |
| 116 | - "WHERE p.name IN (SELECT n.name FROM Doctrine\Tests\Models\Company\CompanyPerson n WHERE n.name = 'Roman B.')"; |
|
| 116 | + "WHERE p.name IN (SELECT n.name FROM Doctrine\Tests\Models\Company\CompanyPerson n WHERE n.name = 'Roman B.')"; |
|
| 117 | 117 | $query = $this->em->createQuery($dql); |
| 118 | 118 | $result = $query->getScalarResult(); |
| 119 | 119 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | public function testGroupByMultipleFields() : void |
| 129 | 129 | { |
| 130 | 130 | $dql = 'SELECT p.department, p.name, count(p.id) FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' . |
| 131 | - 'GROUP BY p.department, p.name'; |
|
| 131 | + 'GROUP BY p.department, p.name'; |
|
| 132 | 132 | $query = $this->em->createQuery($dql); |
| 133 | 133 | $result = $query->getResult(); |
| 134 | 134 | |