another fix for bake 1.2

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3638 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2006-10-13 07:54:27 +00:00
parent 9d1c5334bd
commit 46b1451a8e

View file

@ -1759,6 +1759,7 @@ class Bake {
if(!isset( $field['options'])) {
$field['options'] = null;
}
$this->__modelAlias = null;
if(isset($field['foreignKey'])) {
$modelKey = Inflector::underscore($field['model']);
$modelObj =& ClassRegistry::getObject($modelKey);