mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
"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:
parent
411bf98d40
commit
7e1c80f9ae
1 changed files with 2 additions and 2 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue