Leave the item type introspection for List
This commit is contained in:
parent
12a624d99c
commit
9192c27409
|
@ -563,7 +563,7 @@ DataAccessObject.find = function find(params, cb) {
|
||||||
// Promote the included model as a direct property
|
// Promote the included model as a direct property
|
||||||
var data = obj.__cachedRelations[inc];
|
var data = obj.__cachedRelations[inc];
|
||||||
if(Array.isArray(data)) {
|
if(Array.isArray(data)) {
|
||||||
data = new List(data, data[0] && [data[0].constructor], obj);
|
data = new List(data, null, obj);
|
||||||
}
|
}
|
||||||
obj.__data[inc] = data;
|
obj.__data[inc] = data;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue