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

Get the operation type on a collection

Hello all,

I'm looking for the better solution to get the operation type on a collection. We've some constants like OP_CREATE, OP_NONE, OP_UPDATE and OP_DELETE, but i'm unable to use theses.

Is there a method like getType() ?

Thank's in advance



469
Accepted
answer

Post solved, i'm sorry. We can do it via $_operationMade.