@@ -1261,25 +1261,25 @@ discard block |
||
1261 | 1261 | private function getDQLForDelete() : string |
1262 | 1262 | { |
1263 | 1263 | return 'DELETE' |
1264 | - . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', ']) |
|
1265 | - . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
1266 | - . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
1264 | + . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', ']) |
|
1265 | + . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
1266 | + . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
1267 | 1267 | } |
1268 | 1268 | |
1269 | 1269 | private function getDQLForUpdate() : string |
1270 | 1270 | { |
1271 | 1271 | return 'UPDATE' |
1272 | - . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', ']) |
|
1273 | - . $this->getReducedDQLQueryPart('set', ['pre' => ' SET ', 'separator' => ', ']) |
|
1274 | - . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
1275 | - . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
1272 | + . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', ']) |
|
1273 | + . $this->getReducedDQLQueryPart('set', ['pre' => ' SET ', 'separator' => ', ']) |
|
1274 | + . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
1275 | + . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
1276 | 1276 | } |
1277 | 1277 | |
1278 | 1278 | private function getDQLForSelect() : string |
1279 | 1279 | { |
1280 | 1280 | $dql = 'SELECT' |
1281 | - . ($this->dqlParts['distinct']===true ? ' DISTINCT' : '') |
|
1282 | - . $this->getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']); |
|
1281 | + . ($this->dqlParts['distinct']===true ? ' DISTINCT' : '') |
|
1282 | + . $this->getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']); |
|
1283 | 1283 | |
1284 | 1284 | $fromParts = $this->getDQLPart('from'); |
1285 | 1285 | $joinParts = $this->getDQLPart('join'); |
@@ -1303,10 +1303,10 @@ discard block |
||
1303 | 1303 | } |
1304 | 1304 | |
1305 | 1305 | $dql .= implode(', ', $fromClauses) |
1306 | - . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
1307 | - . $this->getReducedDQLQueryPart('groupBy', ['pre' => ' GROUP BY ', 'separator' => ', ']) |
|
1308 | - . $this->getReducedDQLQueryPart('having', ['pre' => ' HAVING ']) |
|
1309 | - . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
1306 | + . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
1307 | + . $this->getReducedDQLQueryPart('groupBy', ['pre' => ' GROUP BY ', 'separator' => ', ']) |
|
1308 | + . $this->getReducedDQLQueryPart('having', ['pre' => ' HAVING ']) |
|
1309 | + . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
1310 | 1310 | |
1311 | 1311 | return $dql; |
1312 | 1312 | } |
@@ -1323,8 +1323,8 @@ discard block |
||
1323 | 1323 | } |
1324 | 1324 | |
1325 | 1325 | return ($options['pre'] ?? '') |
1326 | - . (is_array($queryPart) ? implode($options['separator'], $queryPart) : $queryPart) |
|
1327 | - . ($options['post'] ?? ''); |
|
1326 | + . (is_array($queryPart) ? implode($options['separator'], $queryPart) : $queryPart) |
|
1327 | + . ($options['post'] ?? ''); |
|
1328 | 1328 | } |
1329 | 1329 | |
1330 | 1330 | /** |