@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | parent::__construct($container); |
| 49 | 49 | |
| 50 | 50 | if (!static::$tableName) { |
| 51 | - throw new Exception('Table name not set in `' . __CLASS__ . '`` model.'); |
|
| 51 | + throw new Exception('Table name not set in `'.__CLASS__.'`` model.'); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | $this->_isNewRecord = $new; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | public static function finder(IQuery $query = null, $single = false, IContainer $container = null) |
| 111 | 111 | { |
| 112 | 112 | $query = ($query instanceof Query) ? $query : new Query($container->db); |
| 113 | - $query->table = static::$tableName . ' `m`'; |
|
| 113 | + $query->table = static::$tableName.' `m`'; |
|
| 114 | 114 | $query->objectName = get_called_class(); |
| 115 | 115 | $query->single = $single; |
| 116 | 116 | |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | $where .= '`'.self::$primaryKey.'` = :'.self::$primaryKey; |
| 379 | 379 | } else { |
| 380 | 380 | throw new Exception($this->container, |
| 381 | - 'In table ' . static::$tableName . ' option `id` not defined/not use.' |
|
| 381 | + 'In table '.static::$tableName.' option `id` not defined/not use.' |
|
| 382 | 382 | ); |
| 383 | 383 | } |
| 384 | 384 | } |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | } |
| 423 | 423 | if ($this->beforeDelete()) { |
| 424 | 424 | if (!self::$primaryKey) { |
| 425 | - throw new Exception('In table ' . static::$tableName . ' option `id` not defined/not use.'); |
|
| 425 | + throw new Exception('In table '.static::$tableName.' option `id` not defined/not use.'); |
|
| 426 | 426 | } |
| 427 | 427 | |
| 428 | 428 | if ( |