molgenis / molgenis-legacy

The MOLGENIS Software generator tool for creating Dynamic Software Infrastructure used in the Life Sciences
http://www.molgenis.org
20 stars 19 forks source link

Delete of individual fails if individual has a child #141

Closed erwinwinder closed 11 years ago

erwinwinder commented 11 years ago

1) Add an individual (a) 2) Add an individual (b) with mother (a) 3) Delete (a):

REMOVE FAILED: remove(Individual) failed: Cannot delete or update a parent row: a foreign key constraint fails (omicsconnect.individual, CONSTRAINT individual_ibfk_2 FOREIGN KEY (Mother) REFERENCES Individual (id))

mswertz commented 11 years ago

This is, in my mind, exactly what we want.