@@ -94,7 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | public function updateCache($data, $pkValue) { |
| 97 | - if (isset($this->cache[$pkValue])) $this->cache[$pkValue] = (object) array_merge((array)$this->cache[$pkValue], (array)$data); |
|
| 97 | + if (isset($this->cache[$pkValue])) $this->cache[$pkValue] = (object)array_merge((array)$this->cache[$pkValue], (array)$data); |
|
| 98 | 98 | else $this->cache[$pkValue] = $data; |
| 99 | 99 | } |
| 100 | 100 | |
@@ -27,9 +27,9 @@ |
||
| 27 | 27 | $this->crudBuilder = new \Maphper\Lib\CrudBuilder(); |
| 28 | 28 | $this->whereBuilder = new \Maphper\Lib\Sql\WhereBuilder(); |
| 29 | 29 | |
| 30 | - $this->fields = implode(',', array_map([$this->adapter, 'quote'], (array) $this->options->read('fields'))); |
|
| 30 | + $this->fields = implode(',', array_map([$this->adapter, 'quote'], (array)$this->options->read('fields'))); |
|
| 31 | 31 | |
| 32 | - $this->defaultSort = $this->options->read('defaultSort') !== false ? $this->options->read('defaultSort') : implode(', ', $this->primaryKey); |
|
| 32 | + $this->defaultSort = $this->options->read('defaultSort') !== false ? $this->options->read('defaultSort') : implode(', ', $this->primaryKey); |
|
| 33 | 33 | |
| 34 | 34 | $this->databaseModify = new DatabaseModify($this->adapter, $this->options->getEditMode(), $this->table); |
| 35 | 35 | $this->databaseSelect = new DatabaseSelect($this->adapter, $this->databaseModify, $this->table); |