Hello, could anyone told me how to perform an
upsert operation in ODM (Object-Document Mapper) ? In MongoDB native driver, there is a parameter
update operation which could perform an upsert operation, but I can't found this in Phalcon ODM.
The upsert operation is that update the record if exists and insert if record does not exist.