@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | public static function finder(IQuery $query = null, $single = false) |
| 108 | 108 | { |
| 109 | 109 | $query = ($query instanceof Query) ? $query : new Query((new ConnectionInjector)->build()); |
| 110 | - $query->table = static::$tableName . ' m'; |
|
| 110 | + $query->table = static::$tableName.' m'; |
|
| 111 | 111 | $query->objectName = get_called_class(); |
| 112 | 112 | $query->single = $single; |
| 113 | 113 | |
@@ -376,9 +376,9 @@ discard block |
||
| 376 | 376 | if (!$where) { |
| 377 | 377 | if (self::$primaryKey) { |
| 378 | 378 | if ((new ConnectionInjector)->build()->getDriverType() === 'pgsql') { |
| 379 | - $where .= '"' . self::$primaryKey . '" = :' . self::$primaryKey; |
|
| 379 | + $where .= '"'.self::$primaryKey.'" = :'.self::$primaryKey; |
|
| 380 | 380 | } else { |
| 381 | - $where .= '`' . self::$primaryKey . '` = :' . self::$primaryKey; |
|
| 381 | + $where .= '`'.self::$primaryKey.'` = :'.self::$primaryKey; |
|
| 382 | 382 | } |
| 383 | 383 | |
| 384 | 384 | } else { |