Do we not need the cascade on deletion, otherwise we'll end up with a load of nodes and links which aren't associated with pathways because they've been deleted... 

If we really don't need it the lines need to be removed rather than commented out.