@@ -35,8 +35,7 @@ |
||
| 35 | 35 | { |
| 36 | 36 | $this->rsl = $this->drv->execute($this->prp, $this->dat); |
| 37 | 37 | $this->num = (is_object($this->rsl) || is_resource($this->rsl)) && $this->drv->countable() ? |
| 38 | - (int) @$this->drv->count($this->rsl) : |
|
| 39 | - 0; |
|
| 38 | + (int) @$this->drv->count($this->rsl) : 0; |
|
| 40 | 39 | $this->aff = $this->drv->affected(); |
| 41 | 40 | try { |
| 42 | 41 | $this->iid = $this->drv->insertId(); |
@@ -62,11 +62,11 @@ discard block |
||
| 62 | 62 | $fields = []; |
| 63 | 63 | $exists = false; |
| 64 | 64 | foreach ($relation->table->getColumns() as $column) { |
| 65 | - $fields[$column] = $row[$name . '___' . $column]; |
|
| 66 | - if (!$exists && $row[$name . '___' . $column] !== null) { |
|
| 65 | + $fields[$column] = $row[$name.'___'.$column]; |
|
| 66 | + if (!$exists && $row[$name.'___'.$column] !== null) { |
|
| 67 | 67 | $exists = true; |
| 68 | 68 | } |
| 69 | - unset($result[$name . '___' . $column]); |
|
| 69 | + unset($result[$name.'___'.$column]); |
|
| 70 | 70 | } |
| 71 | 71 | if ($exists) { |
| 72 | 72 | if ($relation->many) { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | return; |
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | - $this->fetched ++; |
|
| 116 | + $this->fetched++; |
|
| 117 | 117 | while ($this->result->valid()) { |
| 118 | 118 | $row = $this->result->current(); |
| 119 | 119 | $pk = []; |