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

Using models with db generated uuid's for Identity

As a security measure I have chosen to use db generated uuids as defaults for my Primary/Identity field. I am doing this with postgres which allows for a INSERT RETURNING method. Is there a way to get doLowInsert / save to recognize this and fetch the RETURNING identity value?



43.9k

Hi,

this is not a bug but a feature request.

phalcon use php's PDO library to access to the database. Maybe the feature you are asking isn't implemented in pdo ?