Restrict: only hasManyThrough relation can have additional properties

Signed-off-by: Clark Wang <clark.wangs@gmail.com>
This commit is contained in:
Clark Wang 2014-09-01 13:55:53 +08:00
parent 0e6bba4ded
commit 4387957a45
1 changed files with 1 additions and 0 deletions

View File

@ -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'}});
}