![]() |
Bug: Double use where and etc - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Bug: Double use where and etc (/showthread.php?tid=75018) |
Bug: Double use where and etc - XTAZ - 12-08-2019 Hello! Model have paginate method, I needs extends it in my model. I extends countAllResults() and findAll() PHP Code: public function paginateByUser($user_id = null, int $perPage = 20, string $group = 'default', int $page = 0) I cant remove join from one function, because it can be used independently. Generated query: Code: SELECT `my_table`.* Now I must use this hack in function findAllByUser(): PHP Code: $compiledSelect = $this->getCompiledSelect(false); |