alexbilbie/codeigniter-mongodb-library — Issue #21: Error with AddToSet
Author: dkrusenstrahle
Created: 2011-10-19 13:58:31+00:00
State: open

Hello!

I think I found a problem with the AddToSet.

When I run it I get this error:

Update of data into MongoDB failed: Invalid modifier specified$addToSet

This is my query:

$this->mongo_db->where(array ('_id' => $args['id']))->addtoset('likes', 'test')->update('images');