zerodine / MongoDBAclBundle

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

No error is thrown if collections dont exist #19

Closed monbro closed 11 years ago

monbro commented 11 years ago

I had the issue, that I am using the ACL model for my functional tests as well.

As I had not initialised both collections (inside my test database), it was accepting creating masks any way. It should throw here some error, that would be way better.

iampersistent commented 11 years ago

I'm not sure I'm following this. The behavior of MongoDB is to create a collection automatically, if a collection does not exist.

monbro commented 11 years ago

your are right, sorry was my bad maybe