mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #5422 from cakephp/fixture-bake
Don't quit bake when a table is missing.
This commit is contained in:
commit
c496c7b857
1 changed files with 2 additions and 2 deletions
|
@ -242,8 +242,8 @@ class FixtureTask extends BakeTask {
|
||||||
$this->_Schema = new CakeSchema();
|
$this->_Schema = new CakeSchema();
|
||||||
$data = $this->_Schema->read(array('models' => false, 'connection' => $this->connection));
|
$data = $this->_Schema->read(array('models' => false, 'connection' => $this->connection));
|
||||||
if (!isset($data['tables'][$useTable])) {
|
if (!isset($data['tables'][$useTable])) {
|
||||||
$this->error('Could not find your selected table ' . $useTable);
|
$this->err("<warning>Warning:</warning> Could not find the '${useTable}' table for ${model}.");
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tableInfo = $data['tables'][$useTable];
|
$tableInfo = $data['tables'][$useTable];
|
||||||
|
|
Loading…
Reference in a new issue