they had … him/her
Her heart had been broken.
Pronto se dio cuenta de que le habían robado.
He soon realized that he had been robbed.
A la máquina-pájaro le habían cortado casi por completo algunos cables.
Some of the wires on the bird machine had been almost completely cut.
Tom dijo que le habían saqueado la oficina.
Tom said that his office had been ransacked.