Closed dgvirtual closed 4 months ago
The Model
class doesn't directly, but it can use most of the functions from the query builder chained like that. Were you running into an actual error with this?
The
Model
class doesn't directly, but it can use most of the functions from the query builder chained like that. Were you running into an actual error with this?
Using limit() does not produce an error, but it does not work either, it has no effect (on CI 4.3.3, php 7.4).
@lonnieezell, I did a rebase for this PR, so now it passes tests. Please consider it as well. It is only minor improvement, but does limit the otherwise endless list of recent logins (https://www.codeigniter.com/user_guide/models/model.html#findall)
Oh, the the query builder limit(20)
is overwritten by $limit
of findAll()
!
Explains why limit() neither fails nor has any effect...
If all is fine, could someone merge this into develop please? @lonnieezell ?
@lonnieezell , let's finish this trivial change.
(Codeigniter Model does not implement limit() metod