@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $entity = new GH6443Post(); |
| 27 | 27 | $entity->id = 'Foo'; |
| 28 | 28 | |
| 29 | - $dql = 'SELECT p FROM ' . GH6443Post::class . ' p WHERE p = ?1'; |
|
| 29 | + $dql = 'SELECT p FROM '.GH6443Post::class.' p WHERE p = ?1'; |
|
| 30 | 30 | $query = $this->_em->createQuery($dql); |
| 31 | 31 | |
| 32 | 32 | // we do not know that the internal type is a rot13, so we can not add the type parameter here |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * A query object is in CLEAN state when it has NO unparsed/unprocessed DQL parts. |
| 44 | 44 | */ |
| 45 | - const STATE_CLEAN = 1; |
|
| 45 | + const STATE_CLEAN = 1; |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * A query object is in state DIRTY when it has DQL parts that have not yet been |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | |
| 412 | 412 | $value = $this->processParameterValue($value); |
| 413 | 413 | if (null === $type) { |
| 414 | - $type = ($parameter->getValue() === $value) |
|
| 414 | + $type = ($parameter->getValue() === $value) |
|
| 415 | 415 | ? $parameter->getType() |
| 416 | 416 | : ParameterTypeInferer::inferType($value); |
| 417 | 417 | } |
@@ -750,11 +750,11 @@ discard block |
||
| 750 | 750 | ->getName(); |
| 751 | 751 | |
| 752 | 752 | return md5( |
| 753 | - $this->getDQL() . serialize($this->_hints) . |
|
| 754 | - '&platform=' . $platform . |
|
| 755 | - ($this->_em->hasFilters() ? $this->_em->getFilters()->getHash() : '') . |
|
| 756 | - '&firstResult=' . $this->_firstResult . '&maxResult=' . $this->_maxResults . |
|
| 757 | - '&hydrationMode=' . $this->_hydrationMode . '&types=' . serialize($this->_parsedTypes) . 'DOCTRINE_QUERY_CACHE_SALT' |
|
| 753 | + $this->getDQL().serialize($this->_hints). |
|
| 754 | + '&platform='.$platform. |
|
| 755 | + ($this->_em->hasFilters() ? $this->_em->getFilters()->getHash() : ''). |
|
| 756 | + '&firstResult='.$this->_firstResult.'&maxResult='.$this->_maxResults. |
|
| 757 | + '&hydrationMode='.$this->_hydrationMode.'&types='.serialize($this->_parsedTypes).'DOCTRINE_QUERY_CACHE_SALT' |
|
| 758 | 758 | ); |
| 759 | 759 | } |
| 760 | 760 | |
@@ -763,7 +763,7 @@ discard block |
||
| 763 | 763 | */ |
| 764 | 764 | protected function getHash() |
| 765 | 765 | { |
| 766 | - return sha1(parent::getHash(). '-'. $this->_firstResult . '-' . $this->_maxResults); |
|
| 766 | + return sha1(parent::getHash().'-'.$this->_firstResult.'-'.$this->_maxResults); |
|
| 767 | 767 | } |
| 768 | 768 | |
| 769 | 769 | /** |