Skip to content
Permalink
Browse files

Fix database setup instructions

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 9392ee264d137077bee45cd262b2d50e79debd80
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/ORM/README.md
@@ -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'
]);
```

0 comments on commit 9392ee2

Please sign in to comment.
You can’t perform that action at this time.