@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query\Filter; |
| 6 | 6 | |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | final public function getParameter($name) |
| 83 | 83 | { |
| 84 | - if (! isset($this->parameters[$name])) { |
|
| 85 | - throw new \InvalidArgumentException("Parameter '" . $name . "' does not exist."); |
|
| 84 | + if ( ! isset($this->parameters[$name])) { |
|
| 85 | + throw new \InvalidArgumentException("Parameter '".$name."' does not exist."); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | return $this->em->getConnection()->quote($this->parameters[$name]['value'], $this->parameters[$name]['type']); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | final public function hasParameter($name) |
| 99 | 99 | { |
| 100 | - if (! isset($this->parameters[$name])) { |
|
| 100 | + if ( ! isset($this->parameters[$name])) { |
|
| 101 | 101 | return false; |
| 102 | 102 | } |
| 103 | 103 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Query; |
| 6 | 6 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public static function syntaxError($message, $previous = null) |
| 33 | 33 | { |
| 34 | - return new self('[Syntax Error] ' . $message, 0, $previous); |
|
| 34 | + return new self('[Syntax Error] '.$message, 0, $previous); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public static function semanticalError($message, $previous = null) |
| 44 | 44 | { |
| 45 | - return new self('[Semantical Error] ' . $message, 0, $previous); |
|
| 45 | + return new self('[Semantical Error] '.$message, 0, $previous); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function invalidParameterType($expected, $received) |
| 63 | 63 | { |
| 64 | - return new self('Invalid parameter type, ' . $received . ' given, but ' . $expected . ' expected.'); |
|
| 64 | + return new self('Invalid parameter type, '.$received.' given, but '.$expected.' expected.'); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public static function invalidParameterPosition($pos) |
| 73 | 73 | { |
| 74 | - return new self('Invalid parameter position: ' . $pos); |
|
| 74 | + return new self('Invalid parameter position: '.$pos); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | public static function tooManyParameters($expected, $received) |
| 84 | 84 | { |
| 85 | - return new self('Too many parameters: the query defines ' . $expected . ' parameters and you bound ' . $received); |
|
| 85 | + return new self('Too many parameters: the query defines '.$expected.' parameters and you bound '.$received); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | public static function tooFewParameters($expected, $received) |
| 95 | 95 | { |
| 96 | - return new self('Too few parameters: the query defines ' . $expected . ' parameters but you only bound ' . $received); |
|
| 96 | + return new self('Too few parameters: the query defines '.$expected.' parameters but you only bound '.$received); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | public static function invalidParameterFormat($value) |
| 105 | 105 | { |
| 106 | - return new self('Invalid parameter format, ' . $value . ' given, but :<name> or ?<num> expected.'); |
|
| 106 | + return new self('Invalid parameter format, '.$value.' given, but :<name> or ?<num> expected.'); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | */ |
| 114 | 114 | public static function unknownParameter($key) |
| 115 | 115 | { |
| 116 | - return new self('Invalid parameter: token ' . $key . ' is not defined in the query.'); |
|
| 116 | + return new self('Invalid parameter: token '.$key.' is not defined in the query.'); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | /** |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | public static function invalidPathExpression($pathExpr) |
| 133 | 133 | { |
| 134 | 134 | return new self( |
| 135 | - "Invalid PathExpression '" . $pathExpr->identificationVariable . '.' . $pathExpr->field . "'." |
|
| 135 | + "Invalid PathExpression '".$pathExpr->identificationVariable.'.'.$pathExpr->field."'." |
|
| 136 | 136 | ); |
| 137 | 137 | } |
| 138 | 138 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | public static function invalidLiteral($literal) |
| 145 | 145 | { |
| 146 | - return new self("Invalid literal '" . $literal . "'"); |
|
| 146 | + return new self("Invalid literal '".$literal."'"); |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
@@ -154,8 +154,8 @@ discard block |
||
| 154 | 154 | public static function iterateWithFetchJoinCollectionNotAllowed($assoc) |
| 155 | 155 | { |
| 156 | 156 | return new self( |
| 157 | - 'Invalid query operation: Not allowed to iterate over fetch join collections ' . |
|
| 158 | - 'in class ' . $assoc['sourceEntity'] . ' association ' . $assoc['fieldName'] |
|
| 157 | + 'Invalid query operation: Not allowed to iterate over fetch join collections '. |
|
| 158 | + 'in class '.$assoc['sourceEntity'].' association '.$assoc['fieldName'] |
|
| 159 | 159 | ); |
| 160 | 160 | } |
| 161 | 161 | |
@@ -165,8 +165,8 @@ discard block |
||
| 165 | 165 | public static function partialObjectsAreDangerous() |
| 166 | 166 | { |
| 167 | 167 | return new self( |
| 168 | - 'Loading partial objects is dangerous. Fetch full objects or consider ' . |
|
| 169 | - 'using a different fetch mode. If you really want partial objects, ' . |
|
| 168 | + 'Loading partial objects is dangerous. Fetch full objects or consider '. |
|
| 169 | + 'using a different fetch mode. If you really want partial objects, '. |
|
| 170 | 170 | 'set the doctrine.forcePartialLoad query hint to TRUE.' |
| 171 | 171 | ); |
| 172 | 172 | } |
@@ -179,8 +179,8 @@ discard block |
||
| 179 | 179 | public static function overwritingJoinConditionsNotYetSupported($assoc) |
| 180 | 180 | { |
| 181 | 181 | return new self( |
| 182 | - 'Unsupported query operation: It is not yet possible to overwrite the join ' . |
|
| 183 | - 'conditions in class ' . $assoc['sourceEntityName'] . ' association ' . $assoc['fieldName'] . '. ' . |
|
| 182 | + 'Unsupported query operation: It is not yet possible to overwrite the join '. |
|
| 183 | + 'conditions in class '.$assoc['sourceEntityName'].' association '.$assoc['fieldName'].'. '. |
|
| 184 | 184 | 'Use WITH to append additional join conditions to the association.' |
| 185 | 185 | ); |
| 186 | 186 | } |
@@ -192,8 +192,8 @@ discard block |
||
| 192 | 192 | public static function associationPathInverseSideNotSupported(PathExpression $pathExpr) |
| 193 | 193 | { |
| 194 | 194 | return new self( |
| 195 | - 'A single-valued association path expression to an inverse side is not supported in DQL queries. ' . |
|
| 196 | - 'Instead of "' . $pathExpr->identificationVariable . '.' . $pathExpr->field . '" use an explicit join.' |
|
| 195 | + 'A single-valued association path expression to an inverse side is not supported in DQL queries. '. |
|
| 196 | + 'Instead of "'.$pathExpr->identificationVariable.'.'.$pathExpr->field.'" use an explicit join.' |
|
| 197 | 197 | ); |
| 198 | 198 | } |
| 199 | 199 | |
@@ -218,8 +218,8 @@ discard block |
||
| 218 | 218 | public static function associationPathCompositeKeyNotSupported() |
| 219 | 219 | { |
| 220 | 220 | return new self( |
| 221 | - 'A single-valued association path expression to an entity with a composite primary ' . |
|
| 222 | - 'key is not supported. Explicitly name the components of the composite primary key ' . |
|
| 221 | + 'A single-valued association path expression to an entity with a composite primary '. |
|
| 222 | + 'key is not supported. Explicitly name the components of the composite primary key '. |
|
| 223 | 223 | 'in the query.' |
| 224 | 224 | ); |
| 225 | 225 | } |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | */ |
| 233 | 233 | public static function instanceOfUnrelatedClass($className, $rootClass) |
| 234 | 234 | { |
| 235 | - return new self("Cannot check if a child of '" . $rootClass . "' is instanceof '" . $className . "', " . |
|
| 235 | + return new self("Cannot check if a child of '".$rootClass."' is instanceof '".$className."', ". |
|
| 236 | 236 | 'inheritance hierarchy does not exists between these two classes.'); |
| 237 | 237 | } |
| 238 | 238 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | public static function invalidQueryComponent($dqlAlias) |
| 245 | 245 | { |
| 246 | 246 | return new self( |
| 247 | - "Invalid query component given for DQL alias '" . $dqlAlias . "', " . |
|
| 247 | + "Invalid query component given for DQL alias '".$dqlAlias."', ". |
|
| 248 | 248 | "requires 'metadata', 'parent', 'relation', 'map', 'nestingLevel' and 'token' keys." |
| 249 | 249 | ); |
| 250 | 250 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM; |
| 6 | 6 | |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | */ |
| 205 | 205 | public function newDefaultAnnotationDriver(array $paths = []) : AnnotationDriver |
| 206 | 206 | { |
| 207 | - AnnotationRegistry::registerFile(__DIR__ . '/Annotation/DoctrineAnnotations.php'); |
|
| 207 | + AnnotationRegistry::registerFile(__DIR__.'/Annotation/DoctrineAnnotations.php'); |
|
| 208 | 208 | |
| 209 | 209 | $reader = new CachedReader(new AnnotationReader(), new ArrayCache()); |
| 210 | 210 | |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | */ |
| 227 | 227 | public function getEntityNamespace(string $entityNamespaceAlias) : string |
| 228 | 228 | { |
| 229 | - if (! isset($this->entityNamespaces[$entityNamespaceAlias])) { |
|
| 229 | + if ( ! isset($this->entityNamespaces[$entityNamespaceAlias])) { |
|
| 230 | 230 | throw ORMException::unknownEntityNamespace($entityNamespaceAlias); |
| 231 | 231 | } |
| 232 | 232 | |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | */ |
| 325 | 325 | public function getNamedQuery(string $queryName) : string |
| 326 | 326 | { |
| 327 | - if (! isset($this->namedQueries[$queryName])) { |
|
| 327 | + if ( ! isset($this->namedQueries[$queryName])) { |
|
| 328 | 328 | throw ORMException::namedQueryNotFound($queryName); |
| 329 | 329 | } |
| 330 | 330 | |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | */ |
| 349 | 349 | public function getNamedNativeQuery(string $queryName) : array |
| 350 | 350 | { |
| 351 | - if (! isset($this->namedNativeQueries[$queryName])) { |
|
| 351 | + if ( ! isset($this->namedNativeQueries[$queryName])) { |
|
| 352 | 352 | throw ORMException::namedNativeQueryNotFound($queryName); |
| 353 | 353 | } |
| 354 | 354 | |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | { |
| 367 | 367 | $queryCacheImpl = $this->getQueryCacheImpl(); |
| 368 | 368 | |
| 369 | - if (! $queryCacheImpl) { |
|
| 369 | + if ( ! $queryCacheImpl) { |
|
| 370 | 370 | throw ORMException::queryCacheNotConfigured(); |
| 371 | 371 | } |
| 372 | 372 | |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | |
| 377 | 377 | $metadataCacheImpl = $this->getMetadataCacheImpl(); |
| 378 | 378 | |
| 379 | - if (! $metadataCacheImpl) { |
|
| 379 | + if ( ! $metadataCacheImpl) { |
|
| 380 | 380 | throw ORMException::metadataCacheNotConfigured(); |
| 381 | 381 | } |
| 382 | 382 | |
@@ -584,7 +584,7 @@ discard block |
||
| 584 | 584 | { |
| 585 | 585 | $reflectionClass = new \ReflectionClass($repositoryClassName); |
| 586 | 586 | |
| 587 | - if (! $reflectionClass->implementsInterface(ObjectRepository::class)) { |
|
| 587 | + if ( ! $reflectionClass->implementsInterface(ObjectRepository::class)) { |
|
| 588 | 588 | throw ORMException::invalidEntityRepository($repositoryClassName); |
| 589 | 589 | } |
| 590 | 590 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM; |
| 6 | 6 | |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | { |
| 401 | 401 | $aliases = $this->getRootAliases(); |
| 402 | 402 | |
| 403 | - if (! isset($aliases[0])) { |
|
| 403 | + if ( ! isset($aliases[0])) { |
|
| 404 | 404 | throw new \RuntimeException('No alias was set before invoking getRootAlias().'); |
| 405 | 405 | } |
| 406 | 406 | |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | public function getParameter($key) |
| 584 | 584 | { |
| 585 | 585 | $filteredParameters = $this->parameters->filter( |
| 586 | - function (Query\Parameter $parameter) use ($key) : bool { |
|
| 586 | + function(Query\Parameter $parameter) use ($key) : bool { |
|
| 587 | 587 | $parameterName = $parameter->getName(); |
| 588 | 588 | |
| 589 | 589 | return $key === $parameterName || (string) $key === (string) $parameterName; |
@@ -659,7 +659,7 @@ discard block |
||
| 659 | 659 | { |
| 660 | 660 | if ($append && ($dqlPartName === 'where' || $dqlPartName === 'having')) { |
| 661 | 661 | throw new \InvalidArgumentException( |
| 662 | - "Using \$append = true does not have an effect with 'where' or 'having' " . |
|
| 662 | + "Using \$append = true does not have an effect with 'where' or 'having' ". |
|
| 663 | 663 | 'parts. See QueryBuilder#andWhere() for an example for correct usage.' |
| 664 | 664 | ); |
| 665 | 665 | } |
@@ -800,7 +800,7 @@ discard block |
||
| 800 | 800 | { |
| 801 | 801 | $this->type = self::DELETE; |
| 802 | 802 | |
| 803 | - if (! $delete) { |
|
| 803 | + if ( ! $delete) { |
|
| 804 | 804 | return $this; |
| 805 | 805 | } |
| 806 | 806 | |
@@ -827,7 +827,7 @@ discard block |
||
| 827 | 827 | { |
| 828 | 828 | $this->type = self::UPDATE; |
| 829 | 829 | |
| 830 | - if (! $update) { |
|
| 830 | + if ( ! $update) { |
|
| 831 | 831 | return $this; |
| 832 | 832 | } |
| 833 | 833 | |
@@ -882,7 +882,7 @@ discard block |
||
| 882 | 882 | { |
| 883 | 883 | $rootAliases = $this->getRootAliases(); |
| 884 | 884 | |
| 885 | - if (! in_array($alias, $rootAliases)) { |
|
| 885 | + if ( ! in_array($alias, $rootAliases)) { |
|
| 886 | 886 | throw new Query\QueryException( |
| 887 | 887 | sprintf('Specified root alias %s must be set before invoking indexBy().', $alias) |
| 888 | 888 | ); |
@@ -1043,7 +1043,7 @@ discard block |
||
| 1043 | 1043 | */ |
| 1044 | 1044 | public function where($predicates) |
| 1045 | 1045 | { |
| 1046 | - if (! (func_num_args() === 1 && $predicates instanceof Expr\Composite)) { |
|
| 1046 | + if ( ! (func_num_args() === 1 && $predicates instanceof Expr\Composite)) { |
|
| 1047 | 1047 | $predicates = new Expr\Andx(func_get_args()); |
| 1048 | 1048 | } |
| 1049 | 1049 | |
@@ -1162,7 +1162,7 @@ discard block |
||
| 1162 | 1162 | */ |
| 1163 | 1163 | public function having($having) |
| 1164 | 1164 | { |
| 1165 | - if (! (func_num_args() === 1 && ($having instanceof Expr\Andx || $having instanceof Expr\Orx))) { |
|
| 1165 | + if ( ! (func_num_args() === 1 && ($having instanceof Expr\Andx || $having instanceof Expr\Orx))) { |
|
| 1166 | 1166 | $having = new Expr\Andx(func_get_args()); |
| 1167 | 1167 | } |
| 1168 | 1168 | |
@@ -1261,7 +1261,7 @@ discard block |
||
| 1261 | 1261 | public function addCriteria(Criteria $criteria) |
| 1262 | 1262 | { |
| 1263 | 1263 | $allAliases = $this->getAllAliases(); |
| 1264 | - if (! isset($allAliases[0])) { |
|
| 1264 | + if ( ! isset($allAliases[0])) { |
|
| 1265 | 1265 | throw new Query\QueryException('No aliases are set before invoking addCriteria().'); |
| 1266 | 1266 | } |
| 1267 | 1267 | |
@@ -1279,14 +1279,14 @@ discard block |
||
| 1279 | 1279 | foreach ($criteria->getOrderings() as $sort => $order) { |
| 1280 | 1280 | $hasValidAlias = false; |
| 1281 | 1281 | foreach ($allAliases as $alias) { |
| 1282 | - if (strpos($sort . '.', $alias . '.') === 0) { |
|
| 1282 | + if (strpos($sort.'.', $alias.'.') === 0) { |
|
| 1283 | 1283 | $hasValidAlias = true; |
| 1284 | 1284 | break; |
| 1285 | 1285 | } |
| 1286 | 1286 | } |
| 1287 | 1287 | |
| 1288 | - if (! $hasValidAlias) { |
|
| 1289 | - $sort = $allAliases[0] . '.' . $sort; |
|
| 1288 | + if ( ! $hasValidAlias) { |
|
| 1289 | + $sort = $allAliases[0].'.'.$sort; |
|
| 1290 | 1290 | } |
| 1291 | 1291 | |
| 1292 | 1292 | $this->addOrderBy($sort, $order); |
@@ -1360,7 +1360,7 @@ discard block |
||
| 1360 | 1360 | private function getDQLForSelect() |
| 1361 | 1361 | { |
| 1362 | 1362 | $dql = 'SELECT' |
| 1363 | - . ($this->dqlParts['distinct']===true ? ' DISTINCT' : '') |
|
| 1363 | + . ($this->dqlParts['distinct'] === true ? ' DISTINCT' : '') |
|
| 1364 | 1364 | . $this->getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']); |
| 1365 | 1365 | |
| 1366 | 1366 | $fromParts = $this->getDQLPart('from'); |
@@ -1368,7 +1368,7 @@ discard block |
||
| 1368 | 1368 | $fromClauses = []; |
| 1369 | 1369 | |
| 1370 | 1370 | // Loop through all FROM clauses |
| 1371 | - if (! empty($fromParts)) { |
|
| 1371 | + if ( ! empty($fromParts)) { |
|
| 1372 | 1372 | $dql .= ' FROM '; |
| 1373 | 1373 | |
| 1374 | 1374 | foreach ($fromParts as $from) { |
@@ -1376,7 +1376,7 @@ discard block |
||
| 1376 | 1376 | |
| 1377 | 1377 | if ($from instanceof Expr\From && isset($joinParts[$from->getAlias()])) { |
| 1378 | 1378 | foreach ($joinParts[$from->getAlias()] as $join) { |
| 1379 | - $fromClause .= ' ' . ((string) $join); |
|
| 1379 | + $fromClause .= ' '.((string) $join); |
|
| 1380 | 1380 | } |
| 1381 | 1381 | } |
| 1382 | 1382 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM; |
| 6 | 6 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $expectedLockVersion = ($expectedLockVersion instanceof \DateTime) ? $expectedLockVersion->getTimestamp() : $expectedLockVersion; |
| 58 | 58 | $actualLockVersion = ($actualLockVersion instanceof \DateTime) ? $actualLockVersion->getTimestamp() : $actualLockVersion; |
| 59 | 59 | |
| 60 | - return new self('The optimistic lock failed, version ' . $expectedLockVersion . ' was expected, but is actually ' . $actualLockVersion, $entity); |
|
| 60 | + return new self('The optimistic lock failed, version '.$expectedLockVersion.' was expected, but is actually '.$actualLockVersion, $entity); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -67,6 +67,6 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public static function notVersioned($entityName) |
| 69 | 69 | { |
| 70 | - return new self('Cannot obtain optimistic lock on unversioned entity ' . $entityName, null); |
|
| 70 | + return new self('Cannot obtain optimistic lock on unversioned entity '.$entityName, null); |
|
| 71 | 71 | } |
| 72 | 72 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM; |
| 6 | 6 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public static function scheduleInsertForManagedEntity($entity) |
| 21 | 21 | { |
| 22 | - return new self('A managed+dirty entity ' . self::objToStr($entity) . ' can not be scheduled for insertion.'); |
|
| 22 | + return new self('A managed+dirty entity '.self::objToStr($entity).' can not be scheduled for insertion.'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public static function scheduleInsertForRemovedEntity($entity) |
| 31 | 31 | { |
| 32 | - return new self('Removed entity ' . self::objToStr($entity) . ' can not be scheduled for insertion.'); |
|
| 32 | + return new self('Removed entity '.self::objToStr($entity).' can not be scheduled for insertion.'); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public static function scheduleInsertTwice($entity) |
| 41 | 41 | { |
| 42 | - return new self('Entity ' . self::objToStr($entity) . ' can not be scheduled for insertion twice.'); |
|
| 42 | + return new self('Entity '.self::objToStr($entity).' can not be scheduled for insertion twice.'); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | public static function entityWithoutIdentity($className, $entity) |
| 52 | 52 | { |
| 53 | 53 | return new self( |
| 54 | - "The given entity of type '" . $className . "' (" . self::objToStr($entity) . ') has no identity/no ' . |
|
| 54 | + "The given entity of type '".$className."' (".self::objToStr($entity).') has no identity/no '. |
|
| 55 | 55 | 'id values set. It cannot be added to the identity map.' |
| 56 | 56 | ); |
| 57 | 57 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public static function readOnlyRequiresManagedEntity($entity) |
| 65 | 65 | { |
| 66 | - return new self('Only managed entities can be marked or checked as read only. But ' . self::objToStr($entity) . ' is not'); |
|
| 66 | + return new self('Only managed entities can be marked or checked as read only. But '.self::objToStr($entity).' is not'); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | public static function newEntitiesFoundThroughRelationships($newEntitiesWithAssociations) |
| 75 | 75 | { |
| 76 | 76 | $errorMessages = array_map( |
| 77 | - function (array $newEntityWithAssociation) : string { |
|
| 77 | + function(array $newEntityWithAssociation) : string { |
|
| 78 | 78 | [$associationMetadata, $entity] = $newEntityWithAssociation; |
| 79 | 79 | |
| 80 | 80 | return self::newEntityFoundThroughRelationshipMessage($associationMetadata, $entity); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | */ |
| 145 | 145 | public static function entityNotManaged($entity) |
| 146 | 146 | { |
| 147 | - return new self('Entity ' . self::objToStr($entity) . ' is not managed. An entity is managed if its fetched ' . |
|
| 147 | + return new self('Entity '.self::objToStr($entity).' is not managed. An entity is managed if its fetched '. |
|
| 148 | 148 | 'from the database or registered as new through EntityManager#persist'); |
| 149 | 149 | } |
| 150 | 150 | |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | public static function entityHasNoIdentity($entity, $operation) |
| 158 | 158 | { |
| 159 | - return new self('Entity has no identity, therefore ' . $operation . ' cannot be performed. ' . self::objToStr($entity)); |
|
| 159 | + return new self('Entity has no identity, therefore '.$operation.' cannot be performed. '.self::objToStr($entity)); |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | */ |
| 168 | 168 | public static function entityIsRemoved($entity, $operation) |
| 169 | 169 | { |
| 170 | - return new self('Entity is removed, therefore ' . $operation . ' cannot be performed. ' . self::objToStr($entity)); |
|
| 170 | + return new self('Entity is removed, therefore '.$operation.' cannot be performed. '.self::objToStr($entity)); |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | */ |
| 179 | 179 | public static function detachedEntityCannot($entity, $operation) |
| 180 | 180 | { |
| 181 | - return new self('Detached entity ' . self::objToStr($entity) . ' cannot be ' . $operation); |
|
| 181 | + return new self('Detached entity '.self::objToStr($entity).' cannot be '.$operation); |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
@@ -190,8 +190,8 @@ discard block |
||
| 190 | 190 | */ |
| 191 | 191 | public static function invalidObject($context, $given, $parameterIndex = 1) |
| 192 | 192 | { |
| 193 | - return new self($context . ' expects parameter ' . $parameterIndex . |
|
| 194 | - ' to be an entity object, ' . gettype($given) . ' given.'); |
|
| 193 | + return new self($context.' expects parameter '.$parameterIndex. |
|
| 194 | + ' to be an entity object, '.gettype($given).' given.'); |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | /** |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | */ |
| 200 | 200 | public static function invalidCompositeIdentifier() |
| 201 | 201 | { |
| 202 | - return new self('Binding an entity with a composite primary key to a query is not supported. ' . |
|
| 202 | + return new self('Binding an entity with a composite primary key to a query is not supported. '. |
|
| 203 | 203 | 'You should split the parameter into the explicit fields and bind them separately.'); |
| 204 | 204 | } |
| 205 | 205 | |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | */ |
| 238 | 238 | private static function objToStr($obj) : string |
| 239 | 239 | { |
| 240 | - return method_exists($obj, '__toString') ? (string) $obj : get_class($obj) . '@' . spl_object_id($obj); |
|
| 240 | + return method_exists($obj, '__toString') ? (string) $obj : get_class($obj).'@'.spl_object_id($obj); |
|
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | /** |
@@ -246,15 +246,15 @@ discard block |
||
| 246 | 246 | private static function newEntityFoundThroughRelationshipMessage(AssociationMetadata $association, $entity) : string |
| 247 | 247 | { |
| 248 | 248 | return 'A new entity was found through the relationship \'' |
| 249 | - . $association->getSourceEntity() . '#' . $association->getName() . '\' that was not' |
|
| 250 | - . ' configured to cascade persist operations for entity: ' . self::objToStr($entity) . '.' |
|
| 249 | + . $association->getSourceEntity().'#'.$association->getName().'\' that was not' |
|
| 250 | + . ' configured to cascade persist operations for entity: '.self::objToStr($entity).'.' |
|
| 251 | 251 | . ' To solve this issue: Either explicitly call EntityManager#persist()' |
| 252 | 252 | . ' on this unknown entity or configure cascade persist' |
| 253 | 253 | . ' this association in the mapping for example @ManyToOne(..,cascade={"persist"}).' |
| 254 | 254 | . (method_exists($entity, '__toString') |
| 255 | 255 | ? '' |
| 256 | 256 | : ' If you cannot find out which entity causes the problem implement \'' |
| 257 | - . $association->getTargetEntity() . '#__toString()\' to get a clue.' |
|
| 257 | + . $association->getTargetEntity().'#__toString()\' to get a clue.' |
|
| 258 | 258 | ); |
| 259 | 259 | } |
| 260 | 260 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM; |
| 6 | 6 | |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | public function getParameter($key) |
| 294 | 294 | { |
| 295 | 295 | $filteredParameters = $this->parameters->filter( |
| 296 | - function (Query\Parameter $parameter) use ($key) : bool { |
|
| 296 | + function(Query\Parameter $parameter) use ($key) : bool { |
|
| 297 | 297 | $parameterName = $parameter->getName(); |
| 298 | 298 | |
| 299 | 299 | return $key === $parameterName || (string) $key === (string) $parameterName; |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | */ |
| 427 | 427 | private function translateNamespaces(Query\ResultSetMapping $rsm) |
| 428 | 428 | { |
| 429 | - $translate = function ($alias) { |
|
| 429 | + $translate = function($alias) { |
|
| 430 | 430 | return $this->em->getClassMetadata($alias)->getClassName(); |
| 431 | 431 | }; |
| 432 | 432 | |
@@ -726,7 +726,7 @@ discard block |
||
| 726 | 726 | return null; |
| 727 | 727 | } |
| 728 | 728 | |
| 729 | - if (! is_array($result)) { |
|
| 729 | + if ( ! is_array($result)) { |
|
| 730 | 730 | return $result; |
| 731 | 731 | } |
| 732 | 732 | |
@@ -760,7 +760,7 @@ discard block |
||
| 760 | 760 | throw new NoResultException; |
| 761 | 761 | } |
| 762 | 762 | |
| 763 | - if (! is_array($result)) { |
|
| 763 | + if ( ! is_array($result)) { |
|
| 764 | 764 | return $result; |
| 765 | 765 | } |
| 766 | 766 | |
@@ -849,7 +849,7 @@ discard block |
||
| 849 | 849 | $this->setHydrationMode($hydrationMode); |
| 850 | 850 | } |
| 851 | 851 | |
| 852 | - if (! empty($parameters)) { |
|
| 852 | + if ( ! empty($parameters)) { |
|
| 853 | 853 | $this->setParameters($parameters); |
| 854 | 854 | } |
| 855 | 855 | |
@@ -890,11 +890,11 @@ discard block |
||
| 890 | 890 | $this->setHydrationMode($hydrationMode); |
| 891 | 891 | } |
| 892 | 892 | |
| 893 | - if (! empty($parameters)) { |
|
| 893 | + if ( ! empty($parameters)) { |
|
| 894 | 894 | $this->setParameters($parameters); |
| 895 | 895 | } |
| 896 | 896 | |
| 897 | - $setCacheEntry = function () { |
|
| 897 | + $setCacheEntry = function() { |
|
| 898 | 898 | }; |
| 899 | 899 | |
| 900 | 900 | if ($this->hydrationCacheProfile !== null) { |
@@ -908,11 +908,11 @@ discard block |
||
| 908 | 908 | return $result[$realCacheKey]; |
| 909 | 909 | } |
| 910 | 910 | |
| 911 | - if (! $result) { |
|
| 911 | + if ( ! $result) { |
|
| 912 | 912 | $result = []; |
| 913 | 913 | } |
| 914 | 914 | |
| 915 | - $setCacheEntry = function ($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) { |
|
| 915 | + $setCacheEntry = function($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) { |
|
| 916 | 916 | $result[$realCacheKey] = $data; |
| 917 | 917 | |
| 918 | 918 | $cache->save($cacheKey, $result, $queryCacheProfile->getLifetime()); |
@@ -1074,7 +1074,7 @@ discard block |
||
| 1074 | 1074 | { |
| 1075 | 1075 | $query = $this->getSQL(); |
| 1076 | 1076 | $hints = $this->getHints(); |
| 1077 | - $params = array_map(function (Parameter $parameter) { |
|
| 1077 | + $params = array_map(function(Parameter $parameter) { |
|
| 1078 | 1078 | $value = $parameter->getValue(); |
| 1079 | 1079 | |
| 1080 | 1080 | // Small optimization |
@@ -1088,6 +1088,6 @@ discard block |
||
| 1088 | 1088 | |
| 1089 | 1089 | ksort($hints); |
| 1090 | 1090 | |
| 1091 | - return sha1($query . '-' . serialize($params) . '-' . serialize($hints)); |
|
| 1091 | + return sha1($query.'-'.serialize($params).'-'.serialize($hints)); |
|
| 1092 | 1092 | } |
| 1093 | 1093 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Persisters; |
| 6 | 6 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | public static function matchingAssocationFieldRequiresObject($class, $associationName) |
| 18 | 18 | { |
| 19 | 19 | return new self(sprintf( |
| 20 | - 'Cannot match on %s::%s with a non-object value. Matching objects by id is ' . |
|
| 20 | + 'Cannot match on %s::%s with a non-object value. Matching objects by id is '. |
|
| 21 | 21 | 'not compatible with matching on an in-memory collection, which compares objects by reference.', |
| 22 | 22 | $class, |
| 23 | 23 | $associationName |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\ORM\Persisters\Entity; |
| 6 | 6 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | foreach ($data as $columnName => $value) { |
| 107 | - if (! is_array($id) || ! isset($id[$columnName])) { |
|
| 107 | + if ( ! is_array($id) || ! isset($id[$columnName])) { |
|
| 108 | 108 | $type = $this->columns[$columnName]->getType(); |
| 109 | 109 | |
| 110 | 110 | $stmt->bindValue($paramIndex++, $value, $type); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | { |
| 129 | 129 | $updateData = $this->prepareUpdateData($entity); |
| 130 | 130 | |
| 131 | - if (! $updateData) { |
|
| 131 | + if ( ! $updateData) { |
|
| 132 | 132 | return; |
| 133 | 133 | } |
| 134 | 134 | |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $versionedClass = $this->class->versionProperty->getDeclaringClass(); |
| 147 | 147 | $versionedTable = $versionedClass->getTableName(); |
| 148 | 148 | |
| 149 | - if (! isset($updateData[$versionedTable])) { |
|
| 149 | + if ( ! isset($updateData[$versionedTable])) { |
|
| 150 | 150 | $tableName = $versionedClass->table->getQuotedQualifiedName($this->platform); |
| 151 | 151 | |
| 152 | 152 | $this->updateTable($entity, $tableName, [], true); |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | |
| 228 | 228 | if ($filterSql) { |
| 229 | 229 | $conditionSql .= $conditionSql |
| 230 | - ? ' AND ' . $filterSql |
|
| 230 | + ? ' AND '.$filterSql |
|
| 231 | 231 | : $filterSql; |
| 232 | 232 | } |
| 233 | 233 | |
@@ -235,26 +235,26 @@ discard block |
||
| 235 | 235 | |
| 236 | 236 | switch ($lockMode) { |
| 237 | 237 | case LockMode::PESSIMISTIC_READ: |
| 238 | - $lockSql = ' ' . $this->platform->getReadLockSQL(); |
|
| 238 | + $lockSql = ' '.$this->platform->getReadLockSQL(); |
|
| 239 | 239 | break; |
| 240 | 240 | |
| 241 | 241 | case LockMode::PESSIMISTIC_WRITE: |
| 242 | - $lockSql = ' ' . $this->platform->getWriteLockSQL(); |
|
| 242 | + $lockSql = ' '.$this->platform->getWriteLockSQL(); |
|
| 243 | 243 | break; |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | $tableName = $this->class->table->getQuotedQualifiedName($this->platform); |
| 247 | - $from = ' FROM ' . $tableName . ' ' . $baseTableAlias; |
|
| 248 | - $where = $conditionSql !== '' ? ' WHERE ' . $conditionSql : ''; |
|
| 247 | + $from = ' FROM '.$tableName.' '.$baseTableAlias; |
|
| 248 | + $where = $conditionSql !== '' ? ' WHERE '.$conditionSql : ''; |
|
| 249 | 249 | $lock = $this->platform->appendLockHint($from, $lockMode); |
| 250 | 250 | $columnList = $this->getSelectColumnsSQL(); |
| 251 | - $query = 'SELECT ' . $columnList |
|
| 251 | + $query = 'SELECT '.$columnList |
|
| 252 | 252 | . $lock |
| 253 | 253 | . $joinSql |
| 254 | 254 | . $where |
| 255 | 255 | . $orderBySql; |
| 256 | 256 | |
| 257 | - return $this->platform->modifyLimitQuery($query, $limit, $offset) . $lockSql; |
|
| 257 | + return $this->platform->modifyLimitQuery($query, $limit, $offset).$lockSql; |
|
| 258 | 258 | } |
| 259 | 259 | |
| 260 | 260 | /** |
@@ -276,14 +276,14 @@ discard block |
||
| 276 | 276 | |
| 277 | 277 | if ($filterSql !== '') { |
| 278 | 278 | $conditionSql = $conditionSql |
| 279 | - ? $conditionSql . ' AND ' . $filterSql |
|
| 279 | + ? $conditionSql.' AND '.$filterSql |
|
| 280 | 280 | : $filterSql; |
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | $sql = 'SELECT COUNT(*) ' |
| 284 | - . 'FROM ' . $tableName . ' ' . $baseTableAlias |
|
| 284 | + . 'FROM '.$tableName.' '.$baseTableAlias |
|
| 285 | 285 | . $joinSql |
| 286 | - . (empty($conditionSql) ? '' : ' WHERE ' . $conditionSql); |
|
| 286 | + . (empty($conditionSql) ? '' : ' WHERE '.$conditionSql); |
|
| 287 | 287 | |
| 288 | 288 | return $sql; |
| 289 | 289 | } |
@@ -304,18 +304,18 @@ discard block |
||
| 304 | 304 | $conditions = []; |
| 305 | 305 | $tableName = $parentClass->table->getQuotedQualifiedName($this->platform); |
| 306 | 306 | $tableAlias = $this->getSQLTableAlias($parentClass->getTableName()); |
| 307 | - $joinSql .= ' INNER JOIN ' . $tableName . ' ' . $tableAlias . ' ON '; |
|
| 307 | + $joinSql .= ' INNER JOIN '.$tableName.' '.$tableAlias.' ON '; |
|
| 308 | 308 | |
| 309 | 309 | foreach ($identifierColumns as $idColumn) { |
| 310 | 310 | $quotedColumnName = $this->platform->quoteIdentifier($idColumn->getColumnName()); |
| 311 | 311 | |
| 312 | - $conditions[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName; |
|
| 312 | + $conditions[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName; |
|
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | $joinSql .= implode(' AND ', $conditions); |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | - return parent::getLockTablesSql($lockMode) . $joinSql; |
|
| 318 | + return parent::getLockTablesSql($lockMode).$joinSql; |
|
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | /** |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | continue; |
| 343 | 343 | } |
| 344 | 344 | |
| 345 | - if (! ($property instanceof ToOneAssociationMetadata) || ! $property->isOwningSide()) { |
|
| 345 | + if ( ! ($property instanceof ToOneAssociationMetadata) || ! $property->isOwningSide()) { |
|
| 346 | 346 | continue; |
| 347 | 347 | } |
| 348 | 348 | |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | /** @var JoinColumnMetadata $joinColumn */ |
| 353 | 353 | $referencedColumnName = $joinColumn->getReferencedColumnName(); |
| 354 | 354 | |
| 355 | - if (! $joinColumn->getType()) { |
|
| 355 | + if ( ! $joinColumn->getType()) { |
|
| 356 | 356 | $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em)); |
| 357 | 357 | } |
| 358 | 358 | |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | $this->currentPersisterContext->rsm->setDiscriminatorColumn('r', $resultColumnName); |
| 372 | 372 | $this->currentPersisterContext->rsm->addMetaResult('r', $resultColumnName, $discrColumnName, false, $discrColumnType); |
| 373 | 373 | |
| 374 | - $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias . '.' . $quotedColumnName, $this->platform); |
|
| 374 | + $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias.'.'.$quotedColumnName, $this->platform); |
|
| 375 | 375 | |
| 376 | 376 | // sub tables |
| 377 | 377 | foreach ($this->class->getSubClasses() as $subClassName) { |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | /** @var JoinColumnMetadata $joinColumn */ |
| 396 | 396 | $referencedColumnName = $joinColumn->getReferencedColumnName(); |
| 397 | 397 | |
| 398 | - if (! $joinColumn->getType()) { |
|
| 398 | + if ( ! $joinColumn->getType()) { |
|
| 399 | 399 | $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em)); |
| 400 | 400 | } |
| 401 | 401 | |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | $columnName = $joinColumn->getColumnName(); |
| 446 | 446 | $referencedColumnName = $joinColumn->getReferencedColumnName(); |
| 447 | 447 | |
| 448 | - if (! $joinColumn->getType()) { |
|
| 448 | + if ( ! $joinColumn->getType()) { |
|
| 449 | 449 | $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em)); |
| 450 | 450 | } |
| 451 | 451 | |
@@ -501,12 +501,12 @@ discard block |
||
| 501 | 501 | $conditions = []; |
| 502 | 502 | $tableName = $parentClass->table->getQuotedQualifiedName($this->platform); |
| 503 | 503 | $tableAlias = $this->getSQLTableAlias($parentClass->getTableName()); |
| 504 | - $joinSql .= ' INNER JOIN ' . $tableName . ' ' . $tableAlias . ' ON '; |
|
| 504 | + $joinSql .= ' INNER JOIN '.$tableName.' '.$tableAlias.' ON '; |
|
| 505 | 505 | |
| 506 | 506 | foreach ($identifierColumns as $idColumn) { |
| 507 | 507 | $quotedColumnName = $this->platform->quoteIdentifier($idColumn->getColumnName()); |
| 508 | 508 | |
| 509 | - $conditions[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName; |
|
| 509 | + $conditions[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName; |
|
| 510 | 510 | } |
| 511 | 511 | |
| 512 | 512 | $joinSql .= implode(' AND ', $conditions); |
@@ -518,12 +518,12 @@ discard block |
||
| 518 | 518 | $subClass = $this->em->getClassMetadata($subClassName); |
| 519 | 519 | $tableName = $subClass->table->getQuotedQualifiedName($this->platform); |
| 520 | 520 | $tableAlias = $this->getSQLTableAlias($subClass->getTableName()); |
| 521 | - $joinSql .= ' LEFT JOIN ' . $tableName . ' ' . $tableAlias . ' ON '; |
|
| 521 | + $joinSql .= ' LEFT JOIN '.$tableName.' '.$tableAlias.' ON '; |
|
| 522 | 522 | |
| 523 | 523 | foreach ($identifierColumns as $idColumn) { |
| 524 | 524 | $quotedColumnName = $this->platform->quoteIdentifier($idColumn->getColumnName()); |
| 525 | 525 | |
| 526 | - $conditions[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName; |
|
| 526 | + $conditions[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName; |
|
| 527 | 527 | } |
| 528 | 528 | |
| 529 | 529 | $joinSql .= implode(' AND ', $conditions); |