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

PL/SQL (Procedural Language/Structured Query Language) in Phalcon

Hi,

Does phalcon provide any support for PL/SQL (Procedural Language/Structured Query Language)?

edited Mar '16

Yes, plsql methods can be called from model.

  $set = $database->query("SELECT method_name_here(?,?,?)", array($json, $id, $uuid));
  $set->setFetchMode(Db::FETCH_ASSOC);
  $result = $set->fetch(); 

I'm using postgres

Yes, there is an extensive documentation available here: https://docs.phalcon.io/en/latest/reference/phql.html