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

Database Functions (ORM)

Im using Postgresql and i am trying to make use of the DB function make_hash().

I would prefer to use the ORM rather than PHSQL as the application itself relies heavy on it. I figured this could be cused using the onCreate() or on beforeSave() methods but Im not sure how to use a DB function itself there.

Hello,

You may get the db access by using Di::getDefault()->getDb() Then you can query your postgresql.

But I beleive it will be more slow, than using php hash method.

regards