Leave the item type introspection for List

This commit is contained in:
Raymond Feng 2014-02-14 11:21:30 -08:00
parent 12a624d99c
commit 9192c27409
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ DataAccessObject.find = function find(params, cb) {
// Promote the included model as a direct property
var data = obj.__cachedRelations[inc];
if(Array.isArray(data)) {
data = new List(data, data[0] && [data[0].constructor], obj);
data = new List(data, null, obj);
}
obj.__data[inc] = data;
});