From 08b690d196acb0efd95df8aed64d2c3f0beb104d Mon Sep 17 00:00:00 2001 From: gwoo Date: Sun, 30 Sep 2007 20:47:37 +0000 Subject: [PATCH] updating db connection setting for model task git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5704 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/tasks/model.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cake/console/libs/tasks/model.php b/cake/console/libs/tasks/model.php index 706656dae..88c7d6c00 100644 --- a/cake/console/libs/tasks/model.php +++ b/cake/console/libs/tasks/model.php @@ -69,12 +69,7 @@ class ModelTask extends Shell { $primaryKey = 'id'; $validate = array(); $associations = array('belongsTo'=> array(), 'hasOne'=> array(), 'hasMany', 'hasAndBelongsToMany'=> array()); - $usingDefault = $this->in('Will your model be using a database connection setting other than the default?'); - $useDbConfig = 'default'; - - if (low($usingDefault) == 'y' || low($usingDefault) == 'yes') { - $useDbConfig = $this->in('Please provide the name of the connection you wish to use.'); - } + $useDbConfig = $this->in('Database Connection:', null, 'default'); $currentModelName = $this->getName($useDbConfig); $db =& ConnectionManager::getDataSource($useDbConfig);