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
agnes512
changed the title
should able to delete target instances based on filters in HasManyThrough relation
should be able to delete target instances based on filters in HasManyThrough relation
Jun 29, 2020
Steps to reproduce
a
Doctor
has manyPatient
s throughAppointment
, the relation calledpatients
.Current Behavior
The target
p2
gets deleted, but patientp1
is no longer traversable as the through modelAppointment{doctorId: 1, patientId: 1}
gets deleted too.Expected Behavior
Should delete the related through models instead of deleting all throughs that belong to the same source key.
Acceptance Criteria
delete
method in hasManyThrough repositoryThe text was updated successfully, but these errors were encountered: