Closed dhilowitz closed 9 years ago
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'])) ));
Thanks!
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'])) ));