Changed cascade delete to look at property name rather than class.