Browse Source

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'.
Graeme Tait 11 years ago
parent
commit
9392ee264d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/ORM/README.md

+ 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'
 ]);
 ```