LeWestopher / cakephp-monga

A CakePHP 3.x plugin for accessing MongoDB NoSQL data stores
MIT License
17 stars 3 forks source link

You have not configured a default database for Datasource mongo_db #15

Open angelxmoreno opened 5 years ago

angelxmoreno commented 5 years ago

However:

'Datasources' => [
        'mongo_db' => [
            'className' => 'CakeMonga\Database\MongoConnection',
            'dns' => env('MONGODB_URL', 'mongodb://localhost:27017/app')
        ],
        'default' => [
            'className' => 'Cake\Database\Connection',
            'driver' => 'Cake\Database\Driver\Mysql',
            'persistent' => false,
            'host' => 'localhost',
            ...
        ]
];