|
@@ -3,7 +3,7 @@ discard block |
|
|
block discarded – undo |
|
3
|
3
|
* This file contains only the Repository class. |
|
4
|
4
|
*/ |
|
5
|
5
|
|
|
6
|
|
-declare(strict_types = 1); |
|
|
6
|
+declare(strict_types=1); |
|
7
|
7
|
|
|
8
|
8
|
namespace AppBundle\Repository; |
|
9
|
9
|
|
|
@@ -166,7 +166,7 @@ discard block |
|
|
block discarded – undo |
|
166
|
166
|
// $tableExtension in order to generate the new table name |
|
167
|
167
|
if ($this->isLabs() && null !== $tableExtension) { |
|
168
|
168
|
$mapped = true; |
|
169
|
|
- $tableName .=('' === $tableExtension ? '' : '_'.$tableExtension); |
|
|
169
|
+ $tableName .= ('' === $tableExtension ? '' : '_'.$tableExtension); |
|
170
|
170
|
} elseif ($this->container->hasParameter("app.table.$tableName")) { |
|
171
|
171
|
// Use the table specified in the table mapping configuration, if present. |
|
172
|
172
|
$mapped = true; |
|
@@ -178,7 +178,7 @@ discard block |
|
|
block discarded – undo |
|
178
|
178
|
// This is a safeguard in case table mapping isn't properly set up. |
|
179
|
179
|
$isLoggingOrRevision = in_array($tableName, ['revision', 'logging', 'archive']); |
|
180
|
180
|
if (!$mapped && $isLoggingOrRevision && $this->isLabs()) { |
|
181
|
|
- $tableName .="_userindex"; |
|
|
181
|
+ $tableName .= "_userindex"; |
|
182
|
182
|
} |
|
183
|
183
|
|
|
184
|
184
|
// Figure out database name. |
Please login to merge, or discard this patch.