@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | /** |
151 | 151 | * @method |
152 | - * @param type $name |
|
152 | + * @param string $name |
|
153 | 153 | * @param type $arguments |
154 | 154 | * @return type |
155 | 155 | */ |
@@ -178,6 +178,10 @@ discard block |
||
178 | 178 | return $this->retrieveItem($name); |
179 | 179 | } |
180 | 180 | |
181 | + /** |
|
182 | + * @param Relationship[] $relationships |
|
183 | + * @param integer $depth |
|
184 | + */ |
|
181 | 185 | private function expandArrayValue($array, $relationships, $depth, $index = null) |
182 | 186 | { |
183 | 187 | foreach ($relationships as $name => $relationship) { |
@@ -365,6 +369,9 @@ discard block |
||
365 | 369 | |
366 | 370 | } |
367 | 371 | |
372 | + /** |
|
373 | + * @param string $id |
|
374 | + */ |
|
368 | 375 | public function postSaveCallback($id) |
369 | 376 | { |
370 | 377 | |
@@ -393,7 +400,7 @@ discard block |
||
393 | 400 | |
394 | 401 | /** |
395 | 402 | * |
396 | - * @return DataAdapter |
|
403 | + * @return DriverAdapter |
|
397 | 404 | */ |
398 | 405 | public function getAdapter() |
399 | 406 | { |
@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | $this->table = $table['table']; |
87 | 87 | $this->schema = $table['schema']; |
88 | 88 | } |
89 | - $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "") . $driver->quoteIdentifier($this->table); |
|
90 | - $this->unquotedTable = ($this->schema ? "{$this->schema}." : "") . $this->table; |
|
89 | + $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "").$driver->quoteIdentifier($this->table); |
|
90 | + $this->unquotedTable = ($this->schema ? "{$this->schema}." : "").$this->table; |
|
91 | 91 | $this->adapter->setModel($this, $this->quotedTable); |
92 | 92 | foreach ($this->behaviours as $behaviour) { |
93 | 93 | $behaviourInstance = $this->getComponentInstance($behaviour); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | { |
111 | 111 | $this->initialize(); |
112 | 112 | return $this->context->getCache()->read( |
113 | - (new \ReflectionClass($this))->getName() . '::desc', function() { |
|
113 | + (new \ReflectionClass($this))->getName().'::desc', function() { |
|
114 | 114 | return $this->container->resolve(ModelDescription::class, ['model' => $this]); |
115 | 115 | } |
116 | 116 | ); |