This identification can be reconciled if Jehoiada was Zechariah's grandfather, and Berechiah his father.
This reconciliation is possible if Jehoiada is seen as Zechariah's paternal ancestor, and Berechiah as his parent.