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

Logging ODM queries



6.9k
Accepted
answer
edited Oct '15

Phalcon itself has not written a MongoDB adapter, it seems to be using the PECL MongoClient class. As such, to have queries logged similiarly to SQL would you either way to extend the MongoClient() class (or it might be MongoLog() class) and add in the events yourself where appropiate.

tl;dr: Not possible to do similiarly to the SQL Adapter without some work.