Restrict: only hasManyThrough relation can have additional properties
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
This commit is contained in:
parent
0e6bba4ded
commit
4387957a45
|
@ -429,6 +429,7 @@ Model.hasManyRemoting = function (relationName, relation, define) {
|
|||
|
||||
var accepts = [];
|
||||
if (relation.type === 'hasMany' && relation.modelThrough) {
|
||||
// Restrict: only hasManyThrough relation can have additional properties
|
||||
accepts.push({arg: 'data', type: modelThrough.modelName, http: {source: 'body'}});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue