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