@@ -85,18 +85,18 @@ discard block |
||
85 | 85 | { |
86 | 86 | $q = $this->_em->createQuery("select a from Doctrine\Tests\Models\CMS\CmsArticle a"); |
87 | 87 | $q2 = $q->expireQueryCache(true) |
88 | - ->setQueryCacheLifetime(3600) |
|
89 | - ->setQueryCacheDriver(null) |
|
90 | - ->expireResultCache(true) |
|
91 | - ->setHint('foo', 'bar') |
|
92 | - ->setHint('bar', 'baz') |
|
93 | - ->setParameter(1, 'bar') |
|
94 | - ->setParameters(new ArrayCollection([new Parameter(2, 'baz')])) |
|
95 | - ->setResultCacheDriver(null) |
|
96 | - ->setResultCacheId('foo') |
|
97 | - ->setDQL('foo') |
|
98 | - ->setFirstResult(10) |
|
99 | - ->setMaxResults(10); |
|
88 | + ->setQueryCacheLifetime(3600) |
|
89 | + ->setQueryCacheDriver(null) |
|
90 | + ->expireResultCache(true) |
|
91 | + ->setHint('foo', 'bar') |
|
92 | + ->setHint('bar', 'baz') |
|
93 | + ->setParameter(1, 'bar') |
|
94 | + ->setParameters(new ArrayCollection([new Parameter(2, 'baz')])) |
|
95 | + ->setResultCacheDriver(null) |
|
96 | + ->setResultCacheId('foo') |
|
97 | + ->setDQL('foo') |
|
98 | + ->setFirstResult(10) |
|
99 | + ->setMaxResults(10); |
|
100 | 100 | |
101 | 101 | $this->assertSame($q2, $q); |
102 | 102 | } |
@@ -254,11 +254,11 @@ discard block |
||
254 | 254 | $this->_em->getConfiguration()->setResultCacheImpl(new ArrayCache()); |
255 | 255 | |
256 | 256 | $query = $this->_em->createQuery("SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u") |
257 | - ->useResultCache(true); |
|
257 | + ->useResultCache(true); |
|
258 | 258 | |
259 | 259 | /** @var DriverConnectionMock $driverConnectionMock */ |
260 | 260 | $driverConnectionMock = $this->_em->getConnection() |
261 | - ->getWrappedConnection(); |
|
261 | + ->getWrappedConnection(); |
|
262 | 262 | |
263 | 263 | $driverConnectionMock->setStatementMock(new StatementArrayMock([['id_0' => 1]])); |
264 | 264 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | $query->setHint(ORMQuery::HINT_FORCE_PARTIAL_LOAD, true) |
52 | - ->useQueryCache(false); |
|
52 | + ->useQueryCache(false); |
|
53 | 53 | |
54 | 54 | foreach ($queryHints AS $name => $value) { |
55 | 55 | $query->setHint($name, $value); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | $query->setHint(ORMQuery::HINT_FORCE_PARTIAL_LOAD, true) |
91 | - ->useQueryCache(false); |
|
91 | + ->useQueryCache(false); |
|
92 | 92 | |
93 | 93 | foreach ($queryHints AS $name => $value) { |
94 | 94 | $query->setHint($name, $value); |
@@ -1640,9 +1640,9 @@ discard block |
||
1640 | 1640 | ); |
1641 | 1641 | } |
1642 | 1642 | |
1643 | - /** |
|
1644 | - * @group DDC-1430 |
|
1645 | - */ |
|
1643 | + /** |
|
1644 | + * @group DDC-1430 |
|
1645 | + */ |
|
1646 | 1646 | public function testGroupByAllFieldsWhenObjectHasForeignKeys() |
1647 | 1647 | { |
1648 | 1648 | $this->assertSqlGeneration( |
@@ -1982,9 +1982,9 @@ discard block |
||
1982 | 1982 | ); |
1983 | 1983 | } |
1984 | 1984 | |
1985 | - /** |
|
1986 | - * @group DDC-1845 |
|
1987 | - */ |
|
1985 | + /** |
|
1986 | + * @group DDC-1845 |
|
1987 | + */ |
|
1988 | 1988 | public function testQuotedWalkJoinVariableDeclaration() |
1989 | 1989 | { |
1990 | 1990 | $this->assertSqlGeneration( |
@@ -2018,9 +2018,9 @@ discard block |
||
2018 | 2018 | ); |
2019 | 2019 | } |
2020 | 2020 | |
2021 | - /** |
|
2022 | - * @group DDC-2208 |
|
2023 | - */ |
|
2021 | + /** |
|
2022 | + * @group DDC-2208 |
|
2023 | + */ |
|
2024 | 2024 | public function testCaseThenParameterArithmeticExpression() |
2025 | 2025 | { |
2026 | 2026 | $this->assertSqlGeneration( |
@@ -2040,8 +2040,8 @@ discard block |
||
2040 | 2040 | } |
2041 | 2041 | |
2042 | 2042 | /** |
2043 | - * @group DDC-2268 |
|
2044 | - */ |
|
2043 | + * @group DDC-2268 |
|
2044 | + */ |
|
2045 | 2045 | public function testCaseThenFunction() |
2046 | 2046 | { |
2047 | 2047 | $this->assertSqlGeneration( |
@@ -2065,45 +2065,45 @@ discard block |
||
2065 | 2065 | */ |
2066 | 2066 | public function testSupportsMoreThanTwoParametersInConcatFunction() |
2067 | 2067 | { |
2068 | - $connMock = $this->_em->getConnection(); |
|
2069 | - $orgPlatform = $connMock->getDatabasePlatform(); |
|
2068 | + $connMock = $this->_em->getConnection(); |
|
2069 | + $orgPlatform = $connMock->getDatabasePlatform(); |
|
2070 | 2070 | |
2071 | - $connMock->setDatabasePlatform(new MySqlPlatform()); |
|
2072 | - $this->assertSqlGeneration( |
|
2071 | + $connMock->setDatabasePlatform(new MySqlPlatform()); |
|
2072 | + $this->assertSqlGeneration( |
|
2073 | 2073 | "SELECT u.id FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE CONCAT(u.name, u.status, 's') = ?1", |
2074 | 2074 | "SELECT c0_.id AS id_0 FROM cms_users c0_ WHERE CONCAT(c0_.name, c0_.status, 's') = ?" |
2075 | - ); |
|
2076 | - $this->assertSqlGeneration( |
|
2075 | + ); |
|
2076 | + $this->assertSqlGeneration( |
|
2077 | 2077 | "SELECT CONCAT(u.id, u.name, u.status) FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1", |
2078 | 2078 | "SELECT CONCAT(c0_.id, c0_.name, c0_.status) AS sclr_0 FROM cms_users c0_ WHERE c0_.id = ?" |
2079 | - ); |
|
2079 | + ); |
|
2080 | 2080 | |
2081 | - $connMock->setDatabasePlatform(new PostgreSqlPlatform()); |
|
2082 | - $this->assertSqlGeneration( |
|
2081 | + $connMock->setDatabasePlatform(new PostgreSqlPlatform()); |
|
2082 | + $this->assertSqlGeneration( |
|
2083 | 2083 | "SELECT u.id FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE CONCAT(u.name, u.status, 's') = ?1", |
2084 | 2084 | "SELECT c0_.id AS id_0 FROM cms_users c0_ WHERE c0_.name || c0_.status || 's' = ?" |
2085 | - ); |
|
2086 | - $this->assertSqlGeneration( |
|
2085 | + ); |
|
2086 | + $this->assertSqlGeneration( |
|
2087 | 2087 | "SELECT CONCAT(u.id, u.name, u.status) FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1", |
2088 | 2088 | "SELECT c0_.id || c0_.name || c0_.status AS sclr_0 FROM cms_users c0_ WHERE c0_.id = ?" |
2089 | - ); |
|
2089 | + ); |
|
2090 | 2090 | |
2091 | - $connMock->setDatabasePlatform(new SQLServerPlatform()); |
|
2092 | - $this->assertSqlGeneration( |
|
2091 | + $connMock->setDatabasePlatform(new SQLServerPlatform()); |
|
2092 | + $this->assertSqlGeneration( |
|
2093 | 2093 | "SELECT u.id FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE CONCAT(u.name, u.status, 's') = ?1", |
2094 | 2094 | "SELECT c0_.id AS id_0 FROM cms_users c0_ WHERE (c0_.name + c0_.status + 's') = ?" |
2095 | - ); |
|
2096 | - $this->assertSqlGeneration( |
|
2095 | + ); |
|
2096 | + $this->assertSqlGeneration( |
|
2097 | 2097 | "SELECT CONCAT(u.id, u.name, u.status) FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1", |
2098 | 2098 | "SELECT (c0_.id + c0_.name + c0_.status) AS sclr_0 FROM cms_users c0_ WHERE c0_.id = ?" |
2099 | - ); |
|
2099 | + ); |
|
2100 | 2100 | |
2101 | - $connMock->setDatabasePlatform($orgPlatform); |
|
2101 | + $connMock->setDatabasePlatform($orgPlatform); |
|
2102 | 2102 | } |
2103 | 2103 | |
2104 | - /** |
|
2105 | - * @group DDC-2188 |
|
2106 | - */ |
|
2104 | + /** |
|
2105 | + * @group DDC-2188 |
|
2106 | + */ |
|
2107 | 2107 | public function testArithmeticPriority() |
2108 | 2108 | { |
2109 | 2109 | $this->assertSqlGeneration( |
@@ -2123,8 +2123,8 @@ discard block |
||
2123 | 2123 | } |
2124 | 2124 | |
2125 | 2125 | /** |
2126 | - * @group DDC-2475 |
|
2127 | - */ |
|
2126 | + * @group DDC-2475 |
|
2127 | + */ |
|
2128 | 2128 | public function testOrderByClauseShouldReplaceOrderByRelationMapping() |
2129 | 2129 | { |
2130 | 2130 | $this->assertSqlGeneration( |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | $this->_generator->writeEntityClass($metadata, $this->_tmpDir); |
540 | 540 | |
541 | 541 | $filename = $this->_tmpDir . DIRECTORY_SEPARATOR |
542 | - . $this->_namespace . DIRECTORY_SEPARATOR . 'DDC1784Entity.php'; |
|
542 | + . $this->_namespace . DIRECTORY_SEPARATOR . 'DDC1784Entity.php'; |
|
543 | 543 | |
544 | 544 | $this->assertFileExists($filename); |
545 | 545 | require_once $filename; |
@@ -600,9 +600,9 @@ discard block |
||
600 | 600 | |
601 | 601 | } |
602 | 602 | |
603 | - /** |
|
604 | - * @group DDC-2172 |
|
605 | - */ |
|
603 | + /** |
|
604 | + * @group DDC-2172 |
|
605 | + */ |
|
606 | 606 | public function testGetInheritanceTypeString() |
607 | 607 | { |
608 | 608 | $reflection = new \ReflectionClass('\Doctrine\ORM\Mapping\ClassMetadataInfo'); |
@@ -630,8 +630,8 @@ discard block |
||
630 | 630 | } |
631 | 631 | |
632 | 632 | /** |
633 | - * @group DDC-2172 |
|
634 | - */ |
|
633 | + * @group DDC-2172 |
|
634 | + */ |
|
635 | 635 | public function testGetChangeTrackingPolicyString() |
636 | 636 | { |
637 | 637 | $reflection = new \ReflectionClass('\Doctrine\ORM\Mapping\ClassMetadata'); |
@@ -84,7 +84,7 @@ |
||
84 | 84 | $this->entityManager->getConnection()->setDatabasePlatform(new PostgreSqlPlatform); |
85 | 85 | |
86 | 86 | $query = $this->entityManager->createQuery( |
87 | - 'SELECT u, g, COUNT(g.id) AS hidden g_quantity FROM Doctrine\Tests\ORM\Tools\Pagination\User u JOIN u.groups g ORDER BY g_quantity, u.id DESC' |
|
87 | + 'SELECT u, g, COUNT(g.id) AS hidden g_quantity FROM Doctrine\Tests\ORM\Tools\Pagination\User u JOIN u.groups g ORDER BY g_quantity, u.id DESC' |
|
88 | 88 | ); |
89 | 89 | $limitQuery = clone $query; |
90 | 90 | $limitQuery->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, LimitSubqueryOutputWalker::class); |