|
@@ 371-374 (lines=4) @@
|
| 368 |
|
$row = $this->db->get($this->table_name); |
| 369 |
|
$row = $this->temp_return_type == 'array' ? $row->row_array() : $row->row(0, $this->temp_return_type); |
| 370 |
|
|
| 371 |
|
if ( ! empty($row)) |
| 372 |
|
{ |
| 373 |
|
$row = $this->trigger('after_find', ['id' => $id, 'method' => 'find', 'fields' => $row]); |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
// Reset our return type |
| 377 |
|
$this->temp_return_type = $this->return_type; |
|
@@ 412-415 (lines=4) @@
|
| 409 |
|
$row = $this->db->get($this->table_name); |
| 410 |
|
$row = $this->temp_return_type == 'array' ? $row->row_array() : $row->row(0, $this->temp_return_type); |
| 411 |
|
|
| 412 |
|
if ( ! empty($row)) |
| 413 |
|
{ |
| 414 |
|
$row = $this->trigger('after_find', ['method' => 'find_by', 'fields' => $row]); |
| 415 |
|
} |
| 416 |
|
|
| 417 |
|
// Reset our return type |
| 418 |
|
$this->temp_return_type = $this->return_type; |