Skip to content

Commit

Permalink
another bulletproofing for schemaless baking
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Nov 20, 2011
1 parent d2514f3 commit adf73ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -669,7 +669,11 @@ public function doMoreAssociations($model, $associations) {
$className = $this->in(__d('cake_console', 'What className will %s use?', $alias), null, $alias );

if ($assocType == 0) {
$showKeys = $possibleKeys[$model->table];
if (!empty($possibleKeys[$model->table])) {
$showKeys = $possibleKeys[$model->table];
} else {
$showKeys = null;
}
$suggestedForeignKey = $this->_modelKey($alias);
} else {
$otherTable = Inflector::tableize($className);
Expand Down

0 comments on commit adf73ab

Please sign in to comment.