@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace ntentan\nibii; |
| 4 | 4 | |
| 5 | -use ntentan\panie\Container; |
|
| 6 | - |
|
| 7 | 5 | class Operations { |
| 8 | 6 | |
| 9 | 7 | private $wrapper; |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use ntentan\atiaa\DbContext; |
| 6 | 6 | use ntentan\kaikai\Cache; |
| 7 | -use ntentan\panie\Container; |
|
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * A collection of utility methods used as helpers for loading models. |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | $this->table = $table['table']; |
| 85 | 85 | $this->schema = $table['schema']; |
| 86 | 86 | } |
| 87 | - $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "") . $driver->quoteIdentifier($this->table); |
|
| 88 | - $this->unquotedTable = ($this->schema ? "{$this->schema}." : "") . $this->table; |
|
| 87 | + $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "").$driver->quoteIdentifier($this->table); |
|
| 88 | + $this->unquotedTable = ($this->schema ? "{$this->schema}." : "").$this->table; |
|
| 89 | 89 | $this->adapter->setModel($this, $this->quotedTable); |
| 90 | 90 | foreach ($this->behaviours as $behaviour) { |
| 91 | 91 | $behaviourInstance = $this->getComponentInstance($behaviour); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $this->initialize(); |
| 110 | 110 | return $this->context->getCache()->read( |
| 111 | 111 | "{$this->className}::desc", |
| 112 | - function () { |
|
| 112 | + function() { |
|
| 113 | 113 | return $this->context->getModelDescription($this); |
| 114 | 114 | } |
| 115 | 115 | ); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | public function createDriverAdapter() |
| 24 | 24 | { |
| 25 | - $class = __NAMESPACE__ . '\adapters\\' . Text::ucamelize($this->driverName) . 'Adapter'; |
|
| 25 | + $class = __NAMESPACE__.'\adapters\\'.Text::ucamelize($this->driverName).'Adapter'; |
|
| 26 | 26 | return new $class(); |
| 27 | 27 | } |
| 28 | 28 | } |