The judge, before agreeing to grant joint custody, must obtain a report from the Public Prosecutor’s Office, hear the children who have sufficient judgment (in any case those over 12 years of age) and assess the relationship that the parents have with each other.