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 last insertId

After I get the create generated id, please?



7.9k
Accepted
answer
if ($models->create()) {
    $lastInsertId = $models->id;
}