Open GoogleCodeExporter opened 9 years ago
This is "by design", however I appreciate that it is not really the expected
behaviour so I will fix it. I don't think it requires many lines of code to
give the desired behaviour - and to produce a clear error message when a
cascaded object prevents deletion.
Original comment by dr.s.m.f...@gmail.com
on 9 Jan 2015 at 1:28
Thinking more about this I now feel that the fact that all one to many
relationships are cascaded is wrong. In the case of the dataset - sample
relationship it makes no sense to delete a dataset when the sample is deleted.
The cascade should not be present when the item on the many side does does not
have a constraint which includes the item on the one side.As far as I can see
this only affects this one relationship. With this change I don't think there
is any need for checking to many relationships for the right to delete.
Removing the cascade will of course also affect creation.
Original comment by dr.s.m.f...@gmail.com
on 22 Jan 2015 at 4:33
Original issue reported on code.google.com by
rolf.kr...@helmholtz-berlin.de
on 9 Jan 2015 at 1:06