relations: removed allowInvalid flag as it did not work for hasMany
Merge remote-tracking branch 'origin/master'