@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | */ |
315 | 315 | public function testGetParameterTypeJuggling() : void |
316 | 316 | { |
317 | - $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id = ?0'); |
|
317 | + $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id = ?0'); |
|
318 | 318 | |
319 | 319 | $query->setParameter(0, 0); |
320 | 320 | |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | */ |
329 | 329 | public function testSetParameterWithNameZeroIsNotOverridden() : void |
330 | 330 | { |
331 | - $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
331 | + $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
332 | 332 | |
333 | 333 | $query->setParameter(0, 0); |
334 | 334 | $query->setParameter('name', 'Doctrine'); |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | */ |
344 | 344 | public function testSetParameterWithNameZeroDoesNotOverrideAnotherParameter() : void |
345 | 345 | { |
346 | - $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
346 | + $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
347 | 347 | |
348 | 348 | $query->setParameter('name', 'Doctrine'); |
349 | 349 | $query->setParameter(0, 0); |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | */ |
359 | 359 | public function testSetParameterWithTypeJugglingWorks() : void |
360 | 360 | { |
361 | - $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
361 | + $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
362 | 362 | |
363 | 363 | $query->setParameter('0', 1); |
364 | 364 | $query->setParameter('name', 'Doctrine'); |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | { |
379 | 379 | $this->em->getConfiguration()->setResultCacheImpl(new ArrayCache()); |
380 | 380 | |
381 | - $query = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u'); |
|
381 | + $query = $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u'); |
|
382 | 382 | $query->enableResultCache(); |
383 | 383 | $query->setResultCacheProfile(); |
384 | 384 |