You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warn about multiple has_many relationships on one model sharing a predicate, or allow them to produce a solr query that can discriminate on the class_name attribute
#25
class Catalog < AF::Base
has_many :releases, :class_name=> "Album", :property=> :is_part_of
has_many :tracks, :class_name=> "Track", :property=> :is_part_of
end
Catalog#releases.send(:construct_query)
produces a query like: is_part_of_s:info:fedora/catalog:7"
which is the same as
Catalog#tracks.send(:construct_query)
=> is_part_of_s:info:fedora/catalog:7"
So Catalog#releases returns the same objects as Catalog#tracks.
The text was updated successfully, but these errors were encountered:
Hi, I think this bug could be affecting some work we're trying to do here at the Royal Library in Copenhagen, is there a workaround or an ETA for the issue?
Formerly HYDRA-875
class Catalog < AF::Base
has_many :releases, :class_name=> "Album", :property=> :is_part_of
has_many :tracks, :class_name=> "Track", :property=> :is_part_of
end
Catalog#releases.send(:construct_query)
produces a query like: is_part_of_s:info:fedora/catalog:7"
which is the same as
Catalog#tracks.send(:construct_query)
=> is_part_of_s:info:fedora/catalog:7"
So Catalog#releases returns the same objects as Catalog#tracks.
The text was updated successfully, but these errors were encountered: