Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Can't Fix
-
Affects Version/s: None
-
Fix Version/s: 1.0.0ALPHA2
-
Component/s: None
-
Labels:None
Description
When a Document is annotated with @Document(collection="test") and is missing the db attribute the ODM defaults to mongo_dev. What i expected was it defaulted to the database name given when creating a connection.
We have no way to retrieve the database you connected to so you have to configure it by setting $config->setDefaultDB('db_name');