Browse Source

Merge pull request #6166 from burriko/burriko-patch-1

Fix database setup instructions
José Lorenzo Rodríguez 11 years ago
parent
commit
adbb526143
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'
 ]);
 ```