Closed maulanasatyaadi closed 3 years ago
Hi Maulana, I am having the same issue. I was wondering how did you fix this issue? what did you end up doing? Thank you so much for your help
Don't think this is a bug but could be an improvement. We need to think how not to break BC
We will revisit this later.
Resolved in https://github.com/phalcon/cphalcon/pull/15455
I made a model that using the afterFetch method inside, it's work when directly fetch data from the model. Here is my code
And this my pagination script
The result should be like
But the result is
I can use another method like an array_map to generate a result items, but I think it will better if the result in pagination is a result object.