@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | // 1. Create an INSERT INTO temptable ... SELECT identifiers WHERE $AST->getWhereClause() |
78 | 78 | $sqlWalker->setSQLTableAlias($primaryClass->getTableName(), 't0', $primaryDqlAlias); |
79 | 79 | |
80 | - $this->_insertSql = 'INSERT INTO ' . $tempTable . ' (' . $idColumnList . ')' |
|
81 | - . ' SELECT t0.' . implode(', t0.', $idColumnNames); |
|
80 | + $this->_insertSql = 'INSERT INTO '.$tempTable.' ('.$idColumnList.')' |
|
81 | + . ' SELECT t0.'.implode(', t0.', $idColumnNames); |
|
82 | 82 | |
83 | 83 | $rangeDecl = new AST\RangeVariableDeclaration($primaryClass->name, $primaryDqlAlias); |
84 | 84 | $fromClause = new AST\FromClause([new AST\IdentificationVariableDeclaration($rangeDecl, null, [])]); |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | // 2. Create ID subselect statement used in DELETE ... WHERE ... IN (subselect) |
93 | - $idSubselect = 'SELECT ' . $idColumnList . ' FROM ' . $tempTable; |
|
93 | + $idSubselect = 'SELECT '.$idColumnList.' FROM '.$tempTable; |
|
94 | 94 | |
95 | 95 | // 3. Create and store DELETE statements |
96 | 96 | $classNames = array_merge($primaryClass->parentClasses, [$primaryClass->name], $primaryClass->subClasses); |
97 | 97 | foreach (array_reverse($classNames) as $className) { |
98 | 98 | $tableName = $quoteStrategy->getTableName($em->getClassMetadata($className), $platform); |
99 | - $this->_sqlStatements[] = 'DELETE FROM ' . $tableName |
|
100 | - . ' WHERE (' . $idColumnList . ') IN (' . $idSubselect . ')'; |
|
99 | + $this->_sqlStatements[] = 'DELETE FROM '.$tableName |
|
100 | + . ' WHERE ('.$idColumnList.') IN ('.$idSubselect.')'; |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | // 4. Store DDL for temporary identifier table. |
@@ -108,8 +108,8 @@ discard block |
||
108 | 108 | 'type' => Type::getType(PersisterHelper::getTypeOfColumn($idColumnName, $rootClass, $em)), |
109 | 109 | ]; |
110 | 110 | } |
111 | - $this->_createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL() . ' ' . $tempTable . ' (' |
|
112 | - . $platform->getColumnDeclarationListSQL($columnDefinitions) . ')'; |
|
111 | + $this->_createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL().' '.$tempTable.' (' |
|
112 | + . $platform->getColumnDeclarationListSQL($columnDefinitions).')'; |
|
113 | 113 | $this->_dropTempTableSql = $platform->getDropTemporaryTableSQL($tempTable); |
114 | 114 | } |
115 | 115 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | /** |
34 | 34 | * @var string |
35 | 35 | */ |
36 | - protected $preSeparator = ''; |
|
36 | + protected $preSeparator = ''; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * @var string |
@@ -102,7 +102,7 @@ |
||
102 | 102 | [$pathExpression] |
103 | 103 | ); |
104 | 104 | $expression = new InExpression($arithmeticExpression); |
105 | - $expression->literals[] = new InputParameter(":" . self::PAGINATOR_ID_ALIAS); |
|
105 | + $expression->literals[] = new InputParameter(":".self::PAGINATOR_ID_ALIAS); |
|
106 | 106 | |
107 | 107 | } else { |
108 | 108 | $expression = new NullComparisonExpression($pathExpression); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $schema = []; |
76 | 76 | foreach ($this->from as $path) { |
77 | 77 | if (is_dir($path)) { |
78 | - $files = glob($path . '/*.yml'); |
|
78 | + $files = glob($path.'/*.yml'); |
|
79 | 79 | foreach ($files as $file) { |
80 | 80 | $schema = array_merge($schema, (array) Yaml::parse(file_get_contents($file))); |
81 | 81 | } |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | $metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_SEQUENCE); |
239 | 239 | |
240 | 240 | $definition = [ |
241 | - 'sequenceName' => is_array($column['sequence']) ? $column['sequence']['name']:$column['sequence'] |
|
241 | + 'sequenceName' => is_array($column['sequence']) ? $column['sequence']['name'] : $column['sequence'] |
|
242 | 242 | ]; |
243 | 243 | |
244 | 244 | if (isset($column['sequence']['size'])) { |
@@ -721,13 +721,13 @@ |
||
721 | 721 | return $joinColumn; |
722 | 722 | } |
723 | 723 | |
724 | - /** |
|
725 | - * Parses the given field as array. |
|
726 | - * |
|
727 | - * @param SimpleXMLElement $fieldMapping |
|
728 | - * |
|
729 | - * @return array |
|
730 | - */ |
|
724 | + /** |
|
725 | + * Parses the given field as array. |
|
726 | + * |
|
727 | + * @param SimpleXMLElement $fieldMapping |
|
728 | + * |
|
729 | + * @return array |
|
730 | + */ |
|
731 | 731 | private function columnToArray(SimpleXMLElement $fieldMapping) |
732 | 732 | { |
733 | 733 | $mapping = [ |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | |
164 | 164 | if (isset($xmlRoot['inheritance-type'])) { |
165 | 165 | $inheritanceType = (string) $xmlRoot['inheritance-type']; |
166 | - $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_' . $inheritanceType)); |
|
166 | + $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_'.$inheritanceType)); |
|
167 | 167 | |
168 | 168 | if ($metadata->inheritanceType != \Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_NONE) { |
169 | 169 | // Evaluate <discriminator-column...> |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | } |
366 | 366 | |
367 | 367 | if (isset($oneToOneElement['fetch'])) { |
368 | - $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . (string) $oneToOneElement['fetch']); |
|
368 | + $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.(string) $oneToOneElement['fetch']); |
|
369 | 369 | } |
370 | 370 | |
371 | 371 | if (isset($oneToOneElement['mapped-by'])) { |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | ]; |
415 | 415 | |
416 | 416 | if (isset($oneToManyElement['fetch'])) { |
417 | - $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . (string) $oneToManyElement['fetch']); |
|
417 | + $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.(string) $oneToManyElement['fetch']); |
|
418 | 418 | } |
419 | 419 | |
420 | 420 | if (isset($oneToManyElement->cascade)) { |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | } |
462 | 462 | |
463 | 463 | if (isset($manyToOneElement['fetch'])) { |
464 | - $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . (string) $manyToOneElement['fetch']); |
|
464 | + $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.(string) $manyToOneElement['fetch']); |
|
465 | 465 | } |
466 | 466 | |
467 | 467 | if (isset($manyToOneElement['inversed-by'])) { |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | ]; |
504 | 504 | |
505 | 505 | if (isset($manyToManyElement['fetch'])) { |
506 | - $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . (string) $manyToManyElement['fetch']); |
|
506 | + $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.(string) $manyToManyElement['fetch']); |
|
507 | 507 | } |
508 | 508 | |
509 | 509 | if (isset($manyToManyElement['orphan-removal'])) { |
@@ -628,7 +628,7 @@ discard block |
||
628 | 628 | // Evaluate <lifecycle-callbacks...> |
629 | 629 | if (isset($xmlRoot->{'lifecycle-callbacks'})) { |
630 | 630 | foreach ($xmlRoot->{'lifecycle-callbacks'}->{'lifecycle-callback'} as $lifecycleCallback) { |
631 | - $metadata->addLifecycleCallback((string) $lifecycleCallback['method'], constant('Doctrine\ORM\Events::' . (string) $lifecycleCallback['type'])); |
|
631 | + $metadata->addLifecycleCallback((string) $lifecycleCallback['method'], constant('Doctrine\ORM\Events::'.(string) $lifecycleCallback['type'])); |
|
632 | 632 | } |
633 | 633 | } |
634 | 634 | |
@@ -789,12 +789,12 @@ discard block |
||
789 | 789 | $region = isset($cacheMapping['region']) ? (string) $cacheMapping['region'] : null; |
790 | 790 | $usage = isset($cacheMapping['usage']) ? strtoupper($cacheMapping['usage']) : null; |
791 | 791 | |
792 | - if ($usage && ! defined('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $usage)) { |
|
792 | + if ($usage && ! defined('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$usage)) { |
|
793 | 793 | throw new \InvalidArgumentException(sprintf('Invalid cache usage "%s"', $usage)); |
794 | 794 | } |
795 | 795 | |
796 | 796 | if ($usage) { |
797 | - $usage = constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $usage); |
|
797 | + $usage = constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$usage); |
|
798 | 798 | } |
799 | 799 | |
800 | 800 | return [ |
@@ -30,9 +30,9 @@ |
||
30 | 30 | */ |
31 | 31 | class ReadOnlyCachedCollectionPersister extends NonStrictReadWriteCachedCollectionPersister |
32 | 32 | { |
33 | - /** |
|
34 | - * {@inheritdoc} |
|
35 | - */ |
|
33 | + /** |
|
34 | + * {@inheritdoc} |
|
35 | + */ |
|
36 | 36 | public function update(PersistentCollection $collection) |
37 | 37 | { |
38 | 38 | if ($collection->isDirty() && $collection->getSnapshot()) { |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | */ |
38 | 38 | abstract class AbstractCollectionPersister implements CachedCollectionPersister |
39 | 39 | { |
40 | - /** |
|
41 | - * @var \Doctrine\ORM\UnitOfWork |
|
42 | - */ |
|
40 | + /** |
|
41 | + * @var \Doctrine\ORM\UnitOfWork |
|
42 | + */ |
|
43 | 43 | protected $uow; |
44 | 44 | |
45 | 45 | /** |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected $association; |
69 | 69 | |
70 | - /** |
|
71 | - * @var array |
|
72 | - */ |
|
70 | + /** |
|
71 | + * @var array |
|
72 | + */ |
|
73 | 73 | protected $queuedCache = []; |
74 | 74 | |
75 | 75 | /** |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function getCacheLogger() |
75 | 75 | { |
76 | - return $this->cacheLogger; |
|
76 | + return $this->cacheLogger; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | ); |
116 | 116 | } |
117 | 117 | |
118 | - return $this->queryValidator; |
|
118 | + return $this->queryValidator; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | foreach ($joinColumns as $joinColumn) { |
132 | 132 | $columnName = $this->quoteStrategy->getJoinColumnName($joinColumn, $sourceClass, $this->platform); |
133 | 133 | $referencedName = $joinColumn['referencedColumnName']; |
134 | - $conditions[] = 't.' . $columnName . ' = ?'; |
|
134 | + $conditions[] = 't.'.$columnName.' = ?'; |
|
135 | 135 | $params[] = $id[$sourceClass->getFieldForColumn($referencedName)]; |
136 | 136 | $types[] = PersisterHelper::getTypeOfColumn($referencedName, $sourceClass, $this->em); |
137 | 137 | } |
@@ -160,9 +160,9 @@ discard block |
||
160 | 160 | }*/ |
161 | 161 | |
162 | 162 | $sql = 'SELECT COUNT(*)' |
163 | - . ' FROM ' . $joinTableName . ' t' |
|
163 | + . ' FROM '.$joinTableName.' t' |
|
164 | 164 | . $joinTargetEntitySQL |
165 | - . ' WHERE ' . implode(' AND ', $conditions); |
|
165 | + . ' WHERE '.implode(' AND ', $conditions); |
|
166 | 166 | |
167 | 167 | return $this->conn->fetchColumn($sql, $params, 0, $types); |
168 | 168 | } |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | |
191 | 191 | list($quotedJoinTable, $whereClauses, $params, $types) = $this->getJoinTableRestrictionsWithKey($collection, $key, true); |
192 | 192 | |
193 | - $sql = 'SELECT 1 FROM ' . $quotedJoinTable . ' WHERE ' . implode(' AND ', $whereClauses); |
|
193 | + $sql = 'SELECT 1 FROM '.$quotedJoinTable.' WHERE '.implode(' AND ', $whereClauses); |
|
194 | 194 | |
195 | 195 | return (bool) $this->conn->fetchColumn($sql, $params, 0, $types); |
196 | 196 | } |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | list($quotedJoinTable, $whereClauses, $params, $types) = $this->getJoinTableRestrictions($collection, $element, true); |
208 | 208 | |
209 | - $sql = 'SELECT 1 FROM ' . $quotedJoinTable . ' WHERE ' . implode(' AND ', $whereClauses); |
|
209 | + $sql = 'SELECT 1 FROM '.$quotedJoinTable.' WHERE '.implode(' AND ', $whereClauses); |
|
210 | 210 | |
211 | 211 | return (bool) $this->conn->fetchColumn($sql, $params, 0, $types); |
212 | 212 | } |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | |
223 | 223 | list($quotedJoinTable, $whereClauses, $params, $types) = $this->getJoinTableRestrictions($collection, $element, false); |
224 | 224 | |
225 | - $sql = 'DELETE FROM ' . $quotedJoinTable . ' WHERE ' . implode(' AND ', $whereClauses); |
|
225 | + $sql = 'DELETE FROM '.$quotedJoinTable.' WHERE '.implode(' AND ', $whereClauses); |
|
226 | 226 | |
227 | 227 | return (bool) $this->conn->executeUpdate($sql, $params, $types); |
228 | 228 | } |
@@ -271,11 +271,11 @@ discard block |
||
271 | 271 | $rsm = new Query\ResultSetMappingBuilder($this->em); |
272 | 272 | $rsm->addRootEntityFromClassMetadata($targetClass->name, 'te'); |
273 | 273 | |
274 | - $sql = 'SELECT ' . $rsm->generateSelectClause() |
|
275 | - . ' FROM ' . $tableName . ' te' |
|
276 | - . ' JOIN ' . $joinTable . ' t ON' |
|
274 | + $sql = 'SELECT '.$rsm->generateSelectClause() |
|
275 | + . ' FROM '.$tableName.' te' |
|
276 | + . ' JOIN '.$joinTable.' t ON' |
|
277 | 277 | . implode(' AND ', $onConditions) |
278 | - . ' WHERE ' . implode(' AND ', $whereClauses); |
|
278 | + . ' WHERE '.implode(' AND ', $whereClauses); |
|
279 | 279 | |
280 | 280 | $sql .= $this->getOrderingSql($criteria, $targetClass); |
281 | 281 | |
@@ -316,8 +316,8 @@ discard block |
||
316 | 316 | |
317 | 317 | // A join is needed if there is filtering on the target entity |
318 | 318 | $tableName = $this->quoteStrategy->getTableName($rootClass, $this->platform); |
319 | - $joinSql = ' JOIN ' . $tableName . ' te' |
|
320 | - . ' ON' . implode(' AND ', $this->getOnConditionSQL($mapping)); |
|
319 | + $joinSql = ' JOIN '.$tableName.' te' |
|
320 | + . ' ON'.implode(' AND ', $this->getOnConditionSQL($mapping)); |
|
321 | 321 | |
322 | 322 | return [$joinSql, $filterSql]; |
323 | 323 | } |
@@ -336,12 +336,12 @@ discard block |
||
336 | 336 | |
337 | 337 | foreach ($this->em->getFilters()->getEnabledFilters() as $filter) { |
338 | 338 | if ($filterExpr = $filter->addFilterConstraint($targetEntity, $targetTableAlias)) { |
339 | - $filterClauses[] = '(' . $filterExpr . ')'; |
|
339 | + $filterClauses[] = '('.$filterExpr.')'; |
|
340 | 340 | } |
341 | 341 | } |
342 | 342 | |
343 | 343 | return $filterClauses |
344 | - ? '(' . implode(' AND ', $filterClauses) . ')' |
|
344 | + ? '('.implode(' AND ', $filterClauses).')' |
|
345 | 345 | : ''; |
346 | 346 | } |
347 | 347 | |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | $joinColumnName = $this->quoteStrategy->getJoinColumnName($joinColumn, $targetClass, $this->platform); |
370 | 370 | $refColumnName = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $targetClass, $this->platform); |
371 | 371 | |
372 | - $conditions[] = ' t.' . $joinColumnName . ' = ' . 'te.' . $refColumnName; |
|
372 | + $conditions[] = ' t.'.$joinColumnName.' = '.'te.'.$refColumnName; |
|
373 | 373 | } |
374 | 374 | |
375 | 375 | return $conditions; |
@@ -391,8 +391,8 @@ discard block |
||
391 | 391 | $columns[] = $this->quoteStrategy->getJoinColumnName($joinColumn, $class, $this->platform); |
392 | 392 | } |
393 | 393 | |
394 | - return 'DELETE FROM ' . $joinTable |
|
395 | - . ' WHERE ' . implode(' = ? AND ', $columns) . ' = ?'; |
|
394 | + return 'DELETE FROM '.$joinTable |
|
395 | + . ' WHERE '.implode(' = ? AND ', $columns).' = ?'; |
|
396 | 396 | } |
397 | 397 | |
398 | 398 | /** |
@@ -451,8 +451,8 @@ discard block |
||
451 | 451 | } |
452 | 452 | |
453 | 453 | return [ |
454 | - 'DELETE FROM ' . $this->quoteStrategy->getJoinTableName($mapping, $class, $this->platform) |
|
455 | - . ' WHERE ' . implode(' = ? AND ', $columns) . ' = ?', |
|
454 | + 'DELETE FROM '.$this->quoteStrategy->getJoinTableName($mapping, $class, $this->platform) |
|
455 | + . ' WHERE '.implode(' = ? AND ', $columns).' = ?', |
|
456 | 456 | $types, |
457 | 457 | ]; |
458 | 458 | } |
@@ -500,10 +500,10 @@ discard block |
||
500 | 500 | } |
501 | 501 | |
502 | 502 | return [ |
503 | - 'INSERT INTO ' . $this->quoteStrategy->getJoinTableName($mapping, $class, $this->platform) |
|
504 | - . ' (' . implode(', ', $columns) . ')' |
|
503 | + 'INSERT INTO '.$this->quoteStrategy->getJoinTableName($mapping, $class, $this->platform) |
|
504 | + . ' ('.implode(', ', $columns).')' |
|
505 | 505 | . ' VALUES' |
506 | - . ' (' . implode(', ', array_fill(0, count($columns), '?')) . ')', |
|
506 | + . ' ('.implode(', ', array_fill(0, count($columns), '?')).')', |
|
507 | 507 | $types, |
508 | 508 | ]; |
509 | 509 | } |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | $sourceClass = $this->em->getClassMetadata($mapping['sourceEntity']); |
589 | 589 | $targetClass = $this->em->getClassMetadata($mapping['targetEntity']); |
590 | 590 | |
591 | - if (! $mapping['isOwningSide']) { |
|
591 | + if ( ! $mapping['isOwningSide']) { |
|
592 | 592 | $associationSourceClass = $this->em->getClassMetadata($mapping['targetEntity']); |
593 | 593 | $mapping = $associationSourceClass->associationMappings[$mapping['mappedBy']]; |
594 | 594 | $joinColumns = $mapping['joinTable']['joinColumns']; |
@@ -601,7 +601,7 @@ discard block |
||
601 | 601 | $targetRelationMode = 'relationToTargetKeyColumns'; |
602 | 602 | } |
603 | 603 | |
604 | - $quotedJoinTable = $this->quoteStrategy->getJoinTableName($mapping, $associationSourceClass, $this->platform). ' t'; |
|
604 | + $quotedJoinTable = $this->quoteStrategy->getJoinTableName($mapping, $associationSourceClass, $this->platform).' t'; |
|
605 | 605 | $whereClauses = []; |
606 | 606 | $params = []; |
607 | 607 | $types = []; |
@@ -612,14 +612,14 @@ discard block |
||
612 | 612 | $joinConditions = []; |
613 | 613 | |
614 | 614 | foreach ($joinColumns as $joinTableColumn) { |
615 | - $joinConditions[] = 't.' . $joinTableColumn['name'] . ' = tr.' . $joinTableColumn['referencedColumnName']; |
|
615 | + $joinConditions[] = 't.'.$joinTableColumn['name'].' = tr.'.$joinTableColumn['referencedColumnName']; |
|
616 | 616 | } |
617 | 617 | |
618 | 618 | $tableName = $this->quoteStrategy->getTableName($targetClass, $this->platform); |
619 | - $quotedJoinTable .= ' JOIN ' . $tableName . ' tr ON ' . implode(' AND ', $joinConditions); |
|
619 | + $quotedJoinTable .= ' JOIN '.$tableName.' tr ON '.implode(' AND ', $joinConditions); |
|
620 | 620 | $columnName = $targetClass->getColumnName($indexBy); |
621 | 621 | |
622 | - $whereClauses[] = 'tr.' . $columnName . ' = ?'; |
|
622 | + $whereClauses[] = 'tr.'.$columnName.' = ?'; |
|
623 | 623 | $params[] = $key; |
624 | 624 | $types[] = PersisterHelper::getTypeOfColumn($columnName, $targetClass, $this->em); |
625 | 625 | } |
@@ -627,7 +627,7 @@ discard block |
||
627 | 627 | foreach ($mapping['joinTableColumns'] as $joinTableColumn) { |
628 | 628 | if (isset($mapping[$sourceRelationMode][$joinTableColumn])) { |
629 | 629 | $column = $mapping[$sourceRelationMode][$joinTableColumn]; |
630 | - $whereClauses[] = 't.' . $joinTableColumn . ' = ?'; |
|
630 | + $whereClauses[] = 't.'.$joinTableColumn.' = ?'; |
|
631 | 631 | $params[] = $sourceClass->containsForeignIdentifier |
632 | 632 | ? $id[$sourceClass->getFieldForColumn($column)] |
633 | 633 | : $id[$sourceClass->fieldNames[$column]]; |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | } elseif ( ! $joinNeeded) { |
636 | 636 | $column = $mapping[$targetRelationMode][$joinTableColumn]; |
637 | 637 | |
638 | - $whereClauses[] = 't.' . $joinTableColumn . ' = ?'; |
|
638 | + $whereClauses[] = 't.'.$joinTableColumn.' = ?'; |
|
639 | 639 | $params[] = $key; |
640 | 640 | $types[] = PersisterHelper::getTypeOfColumn($column, $targetClass, $this->em); |
641 | 641 | } |
@@ -645,7 +645,7 @@ discard block |
||
645 | 645 | list($joinTargetEntitySQL, $filterSql) = $this->getFilterSql($filterMapping); |
646 | 646 | |
647 | 647 | if ($filterSql) { |
648 | - $quotedJoinTable .= ' ' . $joinTargetEntitySQL; |
|
648 | + $quotedJoinTable .= ' '.$joinTargetEntitySQL; |
|
649 | 649 | $whereClauses[] = $filterSql; |
650 | 650 | } |
651 | 651 | } |
@@ -689,7 +689,7 @@ discard block |
||
689 | 689 | $types = []; |
690 | 690 | |
691 | 691 | foreach ($mapping['joinTableColumns'] as $joinTableColumn) { |
692 | - $whereClauses[] = ($addFilters ? 't.' : '') . $joinTableColumn . ' = ?'; |
|
692 | + $whereClauses[] = ($addFilters ? 't.' : '').$joinTableColumn.' = ?'; |
|
693 | 693 | |
694 | 694 | if (isset($mapping['relationToTargetKeyColumns'][$joinTableColumn])) { |
695 | 695 | $targetColumn = $mapping['relationToTargetKeyColumns'][$joinTableColumn]; |
@@ -711,7 +711,7 @@ discard block |
||
711 | 711 | list($joinTargetEntitySQL, $filterSql) = $this->getFilterSql($filterMapping); |
712 | 712 | |
713 | 713 | if ($filterSql) { |
714 | - $quotedJoinTable .= ' ' . $joinTargetEntitySQL; |
|
714 | + $quotedJoinTable .= ' '.$joinTargetEntitySQL; |
|
715 | 715 | $whereClauses[] = $filterSql; |
716 | 716 | } |
717 | 717 | } |
@@ -760,10 +760,10 @@ discard block |
||
760 | 760 | $targetClass, |
761 | 761 | $this->platform |
762 | 762 | ); |
763 | - $orderBy[] = $field . ' ' . $direction; |
|
763 | + $orderBy[] = $field.' '.$direction; |
|
764 | 764 | } |
765 | 765 | |
766 | - return ' ORDER BY ' . implode(', ', $orderBy); |
|
766 | + return ' ORDER BY '.implode(', ', $orderBy); |
|
767 | 767 | } |
768 | 768 | return ''; |
769 | 769 | } |