How is custody determined in cases of domestic violence? Understandably, the court will aim at having the child benefit from a meaningful relationship with both parents while protecting them