ZF2 ODM MongoDB “need to login”

decastro

New Member
i'm using ZF2 with ODM and MongoDB. When i try to perform very simple tasks like:\[code\]/** @ODM\Document(collection="Test") */class Test{ ...}\[/code\]I receive the Error "need to login". Well, i know why this is a problem an i can solve it by using:\[code\]/** @ODM\Document(db="mongoDB", collection="Test") */class Test{ ...}\[/code\]Instead of using the db declaration the whole time in every class, is there a way to add config values from the .local/.global config file or can i just reconfigure the configure options?Thank you very much.
 
Top