Magistrate highlights impact of family violence on children