You need to define cascade operations when doing this.