julien-c/Circular

My Circular is unable to pull from Mongo. See screenshot of error.

dhilowitz opened this issue · 3 comments

I set Circular up exactly the way the readme described. Unfortunately, I'm getting this error when I get to the main dashboard.

screen shot 2015-02-28 at 1 27 08 pm

I looked in Mongo, and it looks like collections are being created.

The issue is related to this: https://jira.mongodb.org/browse/PHP-1051

We just need to surround $app['account']['users'] with array_values():

$m->circular->posts->remove(array(
    '_id'      => new MongoId($id),
    'user._id' => array('$in' => array_values($app['account']['users']))
));

@dhilowitz Do you mind opening a Pull request?

I've created a pull request. (It's issue #59)