Description
When a fileset is in a work, calling method #in_works does not return the work.
Expected Results
in_works should return the work in an array
Actual Results
in_works returns an empty array
To reproduce
w1 = Hydra::Works::Work.new(id: 'w-1')
fs1 = Hydra::Works::FileSet.new(id: 'fs-1')
w1.members << fs1
w1.save
fs1.in_works # => []
fs1.save
fs1.in_works # => []
NOTE: If you create a collection and add w1 as a member, w1.in_collections will return an empty array until the collection is saved. In the code to reproduce, w1 is saved after putting fs1 into its member list.
Description
When a fileset is in a work, calling method #in_works does not return the work.
Expected Results
in_works should return the work in an array
Actual Results
in_works returns an empty array
To reproduce
NOTE: If you create a collection and add w1 as a member, w1.in_collections will return an empty array until the collection is saved. In the code to reproduce, w1 is saved after putting fs1 into its member list.