tidy codes
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
This commit is contained in:
parent
1393bd0759
commit
74ad6522e7
|
@ -639,9 +639,9 @@ RelationDefinition.hasMany = function hasMany(modelFrom, modelTo, params) {
|
|||
definition.applyScope(this, filter);
|
||||
|
||||
if (definition.modelThrough) {
|
||||
var throughRelationName;
|
||||
|
||||
// find corresponding belongsTo relations from through model as collect
|
||||
var throughRelationName;
|
||||
for(var r in definition.modelThrough.relations) {
|
||||
var relation = definition.modelThrough.relations[r];
|
||||
|
||||
|
|
Loading…
Reference in New Issue