mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
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:
parent
9d1c5334bd
commit
46b1451a8e
1 changed files with 1 additions and 0 deletions
|
@ -1759,6 +1759,7 @@ class Bake {
|
||||||
if(!isset( $field['options'])) {
|
if(!isset( $field['options'])) {
|
||||||
$field['options'] = null;
|
$field['options'] = null;
|
||||||
}
|
}
|
||||||
|
$this->__modelAlias = null;
|
||||||
if(isset($field['foreignKey'])) {
|
if(isset($field['foreignKey'])) {
|
||||||
$modelKey = Inflector::underscore($field['model']);
|
$modelKey = Inflector::underscore($field['model']);
|
||||||
$modelObj =& ClassRegistry::getObject($modelKey);
|
$modelObj =& ClassRegistry::getObject($modelKey);
|
||||||
|
|
Loading…
Add table
Reference in a new issue