Raymond Feng 2014-07-27 00:41:43 -07:00
parent 5bb4cde593
commit d638b29f55
1 changed files with 1 additions and 1 deletions

View File

@ -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;