mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
""
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6393 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7e1c80f9ae
commit
e8ec5a4667
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ class ModelTask extends Shell {
|
||||||
$associationForeignKey = $this->in(__('What is the associationForeignKey?', true), null, $this->_modelKey($model->name));
|
$associationForeignKey = $this->in(__('What is the associationForeignKey?', true), null, $this->_modelKey($model->name));
|
||||||
$joinTable = $this->in(__('What is the joinTable?', true));
|
$joinTable = $this->in(__('What is the joinTable?', true));
|
||||||
}
|
}
|
||||||
$associations[$assocs[$assocType]] = array_values($associations[$assocs[$assocType]]);
|
$associations[$assocs[$assocType]] = array_values((array)$associations[$assocs[$assocType]]);
|
||||||
$count = count($associations[$assocs[$assocType]]);
|
$count = count($associations[$assocs[$assocType]]);
|
||||||
$i = ($count > 0) ? $count : 0;
|
$i = ($count > 0) ? $count : 0;
|
||||||
$associations[$assocs[$assocType]][$i]['alias'] = $alias;
|
$associations[$assocs[$assocType]][$i]['alias'] = $alias;
|
||||||
|
|
Loading…
Add table
Reference in a new issue