when I use countAll, it's seem without deleted_at query |
Hi!
When I use countAll(), It's seem without deleted_at query. How can I with deleted_at when I call countAll()? Code: Database (4 Queries across 0 Connection) I guess first line, $model->countAllResults(false) sec line, $model->countAll(false) 3rd line, $model->paginate(20) list line, $model->pager p.s I changed defualt set 'deleted_at' to 'date_del' thank you
It seems it is a bug.
There is no `countAll()` method in CodeIgniter\Model.
When you use soft deletes, you can use `countAllResults()`.
And you can use Query Builder. https://codeigniter4.github.io/CodeIgnit...ry-builder With Query Builder, you can make any SQL query. Code: public function countAll(bool $reset = true, bool $test = false){ I used override method like this. |
Welcome Guest, Not a member yet? Register Sign In |