zerodine / MongoDBAclBundle

This bundle allows the use of MongoDB as the storage layer for the Symfony ACLs component.
21 stars 32 forks source link

Fixed AclProvider, fixed mongodb 2.6+ issue #42

Open rdotter opened 8 years ago

rdotter commented 8 years ago

In mongoDB 2.6+ the $in param can result in the following error; mongodb Can't canonicalize query: BadValue $in needs an array

At the $entryQuery this occured when adding multiple types in the query.

The fix is simple, start using array_values for $types.