added support for finding has_many records by a set of ids