Merge pull request #5422 from cakephp/fixture-bake

Don't quit bake when a table is missing.
This commit is contained in:
José Lorenzo Rodríguez 2014-12-16 09:13:03 +01:00
commit c496c7b857

View file

@ -242,8 +242,8 @@ class FixtureTask extends BakeTask {
$this->_Schema = new CakeSchema();
$data = $this->_Schema->read(array('models' => false, 'connection' => $this->connection));
if (!isset($data['tables'][$useTable])) {
$this->error('Could not find your selected table ' . $useTable);
return false;
$this->err("<warning>Warning:</warning> Could not find the '${useTable}' table for ${model}.");
return;
}
$tableInfo = $data['tables'][$useTable];