@@ -371,6 +371,9 @@ discard block |
||
371 | 371 | |
372 | 372 | } |
373 | 373 | |
374 | + /** |
|
375 | + * @param string $id |
|
376 | + */ |
|
374 | 377 | public function postSaveCallback($id) |
375 | 378 | { |
376 | 379 | |
@@ -407,6 +410,10 @@ discard block |
||
407 | 410 | return $this->adapter; |
408 | 411 | } |
409 | 412 | |
413 | + /** |
|
414 | + * @param Relationship[] $relationships |
|
415 | + * @param integer $depth |
|
416 | + */ |
|
410 | 417 | private function expandArrayValue($array, $relationships, $depth, $expandOnly = [], $index = null) |
411 | 418 | { |
412 | 419 | if(empty($expandOnly)){ |
@@ -119,8 +119,8 @@ discard block |
||
119 | 119 | $this->table = $table['table']; |
120 | 120 | $this->schema = $table['schema']; |
121 | 121 | } |
122 | - $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "") . $driver->quoteIdentifier($this->table); |
|
123 | - $this->unquotedTable = ($this->schema ? "{$this->schema}." : "") . $this->table; |
|
122 | + $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "").$driver->quoteIdentifier($this->table); |
|
123 | + $this->unquotedTable = ($this->schema ? "{$this->schema}." : "").$this->table; |
|
124 | 124 | $this->adapter->setModel($this, $this->quotedTable); |
125 | 125 | $this->initialized = true; |
126 | 126 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | { |
140 | 140 | $this->initialize(); |
141 | 141 | return $this->context->getCache()->read( |
142 | - "{$this->className}::desc", function () { |
|
142 | + "{$this->className}::desc", function() { |
|
143 | 143 | return $this->context->getModelDescription($this); |
144 | 144 | } |
145 | 145 | ); |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | |
410 | 410 | private function expandArrayValue($array, $relationships, $depth, $expandOnly = [], $index = null) |
411 | 411 | { |
412 | - if(empty($expandOnly)){ |
|
412 | + if (empty($expandOnly)) { |
|
413 | 413 | foreach ($relationships as $name => $relationship) { |
414 | 414 | $array[$name] = $this->fetchRelatedFields($relationship, $index)->toArray($depth); |
415 | 415 | } |