fixing undefined index in model task when defining custom additional associations

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7563 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-09-07 13:03:51 +00:00
parent dba8d8740d
commit 66589e2f18

View file

@ -320,7 +320,8 @@ class ModelTask extends Shell {
$primaryKey = $model->primaryKey; $primaryKey = $model->primaryKey;
$foreignKey = $this->_modelKey($model->name); $foreignKey = $this->_modelKey($model->name);
$associations = $possibleKeys = array(); $associations = array('belongsTo' => array(), 'hasMany' => array(), 'hasOne'=> array(), 'hasAndBelongsToMany' => array());
$possibleKeys = array();
//Look for belongsTo //Look for belongsTo
$i = 0; $i = 0;