codeigniter-base-model
codeigniter-base-model copied to clipboard
count_by() and count_all() ignore the soft-delete status
Added the condition to adapt both method to be coherent with their counterparts get_many_by() and get_all(). I'm not sure if the count_all solution is the best, because it could be affected by previous where calls, but it is my best approach.