Skip to content

Commit

Permalink
Fix database setup instructions
Browse files Browse the repository at this point in the history
config() seems to be the correct method to use, not create() which doesn't exist. Also had to add 'className' and change 'login' to 'username'.
  • Loading branch information
graemetait committed Mar 25, 2015
1 parent 421b7ee commit 9392ee2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ORM/README.md
Expand Up @@ -20,10 +20,11 @@ specify a driver to use:
```php
use Cake\Datasource\ConnectionManager;

ConnectionManager::create('default', [
ConnectionManager::config('default', [
'className' => 'Cake\Database\Connection',
'driver' => 'Cake\Database\Driver\Mysql',
'database' => 'test',
'login' => 'root',
'username' => 'root',
'password' => 'secret'
]);
```
Expand Down

0 comments on commit 9392ee2

Please sign in to comment.