From 9392ee264d137077bee45cd262b2d50e79debd80 Mon Sep 17 00:00:00 2001 From: Graeme Tait Date: Wed, 25 Mar 2015 10:25:04 +0000 Subject: [PATCH] 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'. --- src/ORM/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ORM/README.md b/src/ORM/README.md index a191b5752cc..342b3d38828 100644 --- a/src/ORM/README.md +++ b/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' ]); ```