allow creating models without the table existing

particularly useful/appropriate for schemaless datasources
This commit is contained in:
AD7six 2011-11-19 23:51:39 +01:00
parent 90b007ef75
commit ac8e1e8304
2 changed files with 16 additions and 14 deletions

View file

@ -206,7 +206,7 @@ class CakeSchema extends Object {
}
$tables = array();
$currentTables = $db->listSources();
$currentTables = (array) $db->listSources();
$prefix = null;
if (isset($db->config['prefix'])) {