lundi 19 février 2018

Laravel getCountForPagination() issues when query has 'having' clause

The getCountForPagination() function from laravel crashes when the queries have a HAVING clause in them. Basically what it happens is that function removes everything from the select and adds a COUNT(*) and the HAVING clause does not see the aliases anymore.

Is there any workaround for this ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire