mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
This commit is contained in:
commit
e1b28a41a8
|
@ -189,9 +189,11 @@ _.extend(Application.prototype, {
|
|||
} else {
|
||||
cname = prefix + "_" + name;
|
||||
}
|
||||
|
||||
var collection = db._collection(cname);
|
||||
|
||||
if (!collection) {
|
||||
throw new Error("collection with name '" + cname + "' does not exist.");
|
||||
}
|
||||
|
||||
return new Repo(prefix, collection, model);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue