mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
allow creating models without the table existing
particularly useful/appropriate for schemaless datasources
This commit is contained in:
parent
90b007ef75
commit
ac8e1e8304
2 changed files with 16 additions and 14 deletions
|
@ -206,7 +206,7 @@ class CakeSchema extends Object {
|
|||
}
|
||||
|
||||
$tables = array();
|
||||
$currentTables = $db->listSources();
|
||||
$currentTables = (array) $db->listSources();
|
||||
|
||||
$prefix = null;
|
||||
if (isset($db->config['prefix'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue