Fixed #19149 -- Fixed cascading deletion behavior of subclass with gener...

...al relation set on parent.