navruzm/lmongo — pull request #23 by DanielOReilly (2013-05-22 13:06:56+00:00)
Title: Added upsert flag for update method.

Added upsert flag for update method. Defaults to false if not specified.

LMongo::collection('users')
->where('id', 1)
->update(array('votes' => 1), true);

The above will create a new record if it can not find one.