Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Logging ODM queries

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.