Issue Details (XML | Word | Printable)

Key: MODM-14
Type: Bug Bug
Status: Resolved Resolved
Resolution: Can't Fix
Priority: Minor Minor
Assignee: Jonathan H. Wage
Reporter: Henrik Bjornskov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Doctrine MongoDB ODM

Default database when @Document annotation does not contain a db attribute.

Created: 11/Jun/10 02:39 PM   Updated: 11/Jun/10 03:06 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.0ALPHA2


 Description  « Hide
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.

 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Jonathan H. Wage added a comment - 11/Jun/10 03:06 PM
We have no way to retrieve the database you connected to so you have to configure it by setting $config->setDefaultDB('db_name');