Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Fix issue #49 #59

Merged
merged 1 commit into from
Apr 9, 2015
Merged

Fix issue #49 #59

merged 1 commit into from
Apr 9, 2015

Conversation

dhilowitz
Copy link
Contributor

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']))
));

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']))
));
julien-c added a commit that referenced this pull request Apr 9, 2015
@julien-c julien-c merged commit e17d778 into julien-c:master Apr 9, 2015
@julien-c
Copy link
Owner

julien-c commented Apr 9, 2015

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants