We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Get next record

I have variable with id :

$var = $all->id;

How i can get next record in table after this id ?



2.1k
Accepted
answer
all::findFirst('id > '.$id)->limit(1); // ?