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:
gwoo 2006-10-13 07:51:55 +00:00
parent 80481ae318
commit 9d1c5334bd

View file

@ -1765,7 +1765,6 @@ class Bake {
foreach($modelObj->belongsTo as $associationName=>$value) {
if($field['foreignKey'] == $value['foreignKey']) {
$this->__modelAlias = $this->__modelName($associationName);
break;
} else {
$this->__modelAlias = $this->__modelNameFromKey($field['foreignKey']);
}