@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | 9 => "St Julien" |
167 | 167 | ]; |
168 | 168 | |
169 | - $query = $this->_em |
|
169 | + $query = $this->_em |
|
170 | 170 | ->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)") |
171 | 171 | ->setParameter('cities', $cities); |
172 | 172 | |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | public function testProcessParameterValueClassMetadata() |
184 | 184 | { |
185 | - $query = $this->_em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)"); |
|
185 | + $query = $this->_em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)"); |
|
186 | 186 | $this->assertEquals( |
187 | 187 | CmsAddress::class, |
188 | 188 | $query->processParameterValue($this->_em->getClassMetadata(CmsAddress::class)) |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | */ |
312 | 312 | public function testGetParameterTypeJuggling() : void |
313 | 313 | { |
314 | - $query = $this->_em->createQuery('select u from ' . CmsUser::class . ' u where u.id = ?0'); |
|
314 | + $query = $this->_em->createQuery('select u from '.CmsUser::class.' u where u.id = ?0'); |
|
315 | 315 | |
316 | 316 | $query->setParameter(0, 0); |
317 | 317 | |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | */ |
326 | 326 | public function testSetParameterWithNameZeroIsNotOverridden() : void |
327 | 327 | { |
328 | - $query = $this->_em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
328 | + $query = $this->_em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
329 | 329 | |
330 | 330 | $query->setParameter(0, 0); |
331 | 331 | $query->setParameter('name', 'Doctrine'); |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | */ |
341 | 341 | public function testSetParameterWithNameZeroDoesNotOverrideAnotherParameter() : void |
342 | 342 | { |
343 | - $query = $this->_em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
343 | + $query = $this->_em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
344 | 344 | |
345 | 345 | $query->setParameter('name', 'Doctrine'); |
346 | 346 | $query->setParameter(0, 0); |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | */ |
356 | 356 | public function testSetParameterWithTypeJugglingWorks() : void |
357 | 357 | { |
358 | - $query = $this->_em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
358 | + $query = $this->_em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
359 | 359 | |
360 | 360 | $query->setParameter('0', 1); |
361 | 361 | $query->setParameter('name', 'Doctrine'); |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | { |
376 | 376 | $this->_em->getConfiguration()->setResultCacheImpl(new ArrayCache()); |
377 | 377 | |
378 | - $query = $this->_em->createQuery('SELECT u FROM ' . CmsUser::class . ' u'); |
|
378 | + $query = $this->_em->createQuery('SELECT u FROM '.CmsUser::class.' u'); |
|
379 | 379 | $query->useResultCache(true); |
380 | 380 | $query->setResultCacheProfile(); |
381 | 381 |