"Fixes generation of model tests and fixtures"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6392 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-01-19 22:04:54 +00:00
parent 411bf98d40
commit 7e1c80f9ae

View file

@ -771,10 +771,10 @@ class ModelTask extends Shell {
$schema = new CakeSchema();
$data = $schema->read(array('models' => false));
if (!isset($data['tables']['missing'][$useTable])) {
if (!isset($data['tables'][$useTable])) {
return false;
}
$tables[$model] = $data['tables']['missing'][$useTable];
$tables[$model] = $data['tables'][$useTable];
foreach ($tables as $table => $fields) {
if (!is_numeric($table) && $table !== 'missing') {