mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
dba8d8740d
commit
66589e2f18
1 changed files with 2 additions and 1 deletions
|
@ -320,7 +320,8 @@ class ModelTask extends Shell {
|
|||
$primaryKey = $model->primaryKey;
|
||||
$foreignKey = $this->_modelKey($model->name);
|
||||
|
||||
$associations = $possibleKeys = array();
|
||||
$associations = array('belongsTo' => array(), 'hasMany' => array(), 'hasOne'=> array(), 'hasAndBelongsToMany' => array());
|
||||
$possibleKeys = array();
|
||||
|
||||
//Look for belongsTo
|
||||
$i = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue