mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +00:00
another fix for bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3637 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
80481ae318
commit
9d1c5334bd
1 changed files with 0 additions and 1 deletions
|
@ -1765,7 +1765,6 @@ class Bake {
|
||||||
foreach($modelObj->belongsTo as $associationName=>$value) {
|
foreach($modelObj->belongsTo as $associationName=>$value) {
|
||||||
if($field['foreignKey'] == $value['foreignKey']) {
|
if($field['foreignKey'] == $value['foreignKey']) {
|
||||||
$this->__modelAlias = $this->__modelName($associationName);
|
$this->__modelAlias = $this->__modelName($associationName);
|
||||||
break;
|
|
||||||
} else {
|
} else {
|
||||||
$this->__modelAlias = $this->__modelNameFromKey($field['foreignKey']);
|
$this->__modelAlias = $this->__modelNameFromKey($field['foreignKey']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue