@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | $this->quotedTable = $driver->quoteIdentifier($table); |
65 | 65 | $this->table = $this->unquotedTable = $table; |
66 | 66 | } else { |
67 | - $this->quotedTable = ( isset($table['schema']) ? "{$driver->quoteIdentifier($table["schema"])}." : "") . $driver->quoteIdentifier($table["table"]); |
|
68 | - $this->unquotedTable = (isset($table['schema']) ? "{$table['schema']}." : "") . $table['table']; |
|
67 | + $this->quotedTable = (isset($table['schema']) ? "{$driver->quoteIdentifier($table["schema"])}." : "").$driver->quoteIdentifier($table["table"]); |
|
68 | + $this->unquotedTable = (isset($table['schema']) ? "{$table['schema']}." : "").$table['table']; |
|
69 | 69 | $this->table = $table['table']; |
70 | 70 | $this->schema = $table['schema']; |
71 | 71 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function getDescription() { |
85 | 85 | return $this->context->getCache()->read( |
86 | - (new \ReflectionClass($this))->getName() . '::desc', function() { |
|
86 | + (new \ReflectionClass($this))->getName().'::desc', function() { |
|
87 | 87 | return $this->container->resolve(ModelDescription::class, ['model' => $this]); |
88 | 88 | } |
89 | 89 | ); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $this->options['foreign_key'] = $model->getDescription()->getPrimaryKey()[0]; |
54 | 54 | } |
55 | 55 | if ($this->options['local_key'] == null) { |
56 | - $this->options['local_key'] = Text::singularize($table) . '_id'; |
|
56 | + $this->options['local_key'] = Text::singularize($table).'_id'; |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 |