protected function _getAllTables()
{
$db = ConnectionManager::get($this->connection);
if (!method_exists($db, 'schemaCollection')) {
$this->err('Connections need to implement schemaCollection() to be used with bake.');
return $this->_stop();
}
$schema = $db->schemaCollection();
$tables = $schema->listTables();
if (empty($tables)) {
$this->err('Your database does not have any tables.');
return $this->_stop();
}
sort($tables);
return $tables;
}