This commit is contained in:
parent
5bb4cde593
commit
d638b29f55
|
@ -243,7 +243,7 @@ registry.createDataSource = function (name, options) {
|
|||
var BaseModel = settings.base || settings.super;
|
||||
if (!BaseModel) {
|
||||
// Check the connector types
|
||||
var connectorTypes = ds.connector && ds.connector.getTypes();
|
||||
var connectorTypes = ds.getTypes();
|
||||
if (Array.isArray(connectorTypes) && connectorTypes.indexOf('db') !== -1) {
|
||||
// Only set up the base model to PersistedModel if the connector is DB
|
||||
BaseModel = self.PersistedModel;
|
||||
|
|
Loading…
Reference in New Issue