@@ 357-365 (lines=9) @@ | ||
354 | $this->trigger('before_find', ['id' => $id, 'method' => 'find']); |
|
355 | ||
356 | // Ignore any soft-deleted rows |
|
357 | if ($this->soft_deletes) { |
|
358 | // We only need to modify the where statement if |
|
359 | // temp_with_deleted is false. |
|
360 | if ($this->temp_with_deleted !== true) { |
|
361 | $this->db->where($this->soft_delete_key, false); |
|
362 | } |
|
363 | ||
364 | $this->temp_with_deleted = false; |
|
365 | } |
|
366 | ||
367 | $this->db->where($this->primary_key, $id); |
|
368 | $row = $this->db->get($this->table_name); |
|
@@ 397-405 (lines=9) @@ | ||
394 | $this->_set_where($where); |
|
395 | ||
396 | // Ignore any soft-deleted rows |
|
397 | if ($this->soft_deletes) { |
|
398 | // We only need to modify the where statement if |
|
399 | // temp_with_deleted is false. |
|
400 | if ($this->temp_with_deleted !== true) { |
|
401 | $this->db->where($this->soft_delete_key, false); |
|
402 | } |
|
403 | ||
404 | $this->temp_with_deleted = false; |
|
405 | } |
|
406 | ||
407 | $this->trigger('before_find', ['method' => 'find_by', 'fields' => $where]); |
|
408 | ||
@@ 468-476 (lines=9) @@ | ||
465 | $this->trigger('before_find', ['method' => 'find_all']); |
|
466 | ||
467 | // Ignore any soft-deleted rows |
|
468 | if ($this->soft_deletes) { |
|
469 | // We only need to modify the where statement if |
|
470 | // temp_with_deleted is false. |
|
471 | if ($this->temp_with_deleted !== true) { |
|
472 | $this->db->where($this->soft_delete_key, false); |
|
473 | } |
|
474 | ||
475 | $this->temp_with_deleted = false; |
|
476 | } |
|
477 | ||
478 | $rows = $this->db->get($this->table_name); |
|
479 | $rows = $this->temp_return_type == 'array' ? $rows->result_array() : $rows->result($this->temp_return_type); |