Deleting Domain is not Deleting Company ( delete cascade is turned on)

skyisthelimit
Tera Contributor

So, My company has a reference field Domain. 
In dictionary of above field I have set delete/cascade. 
Expected Result : When parent(domain) is deleted it's child ( company) should also be deleted. 
Actual Result : When parent(domain) is deleted, Parent gets deleted but it's child(company) is assigned to parent of deleted parent. Also, Company has some children and cascade/delete is on, then those children in above case are also not deleted. 

Observation 2 : If I delete Company, Company and users under it are all deleted ( cascade is working here but not in domain-Company case)
What could be the solution for above problem??

0 REPLIES 0