We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 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.


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.