alexbilbie/codeigniter-mongodb-library — Issue #26: Cannot pop item out of array in specific document
Author: Foap
Created: 2011-11-16 14:10:17+00:00
State: open

Hello,

I need to pop an item out of an array in a specific document. The below code renders in an error:

Update of data into MongoDB failed: Modifiers and non-modifiers cannot be mixed

This is the code that I am using:

$this -> mongo_db -> pull ('items', $pull) -> update ('market.carts', $query);

What am I doing wrong?