strongloop/loopback-datasource-juggler — pull request #225 by fabien (2014-08-16 11:04:43+00:00)
Title: HasMany exists should use internal findById

This limits the scope correctly, taking polymorphics into account.

(the foreign key check is actually obsolete I think)