Backlink attributes

Is it possible to create a virtual attribute on one class of objects and tie it to another class via a backlink attribute?

Similar to Members in groups and Memberof in Users, how can I create a banklink that works like this?

I haven't found any references to doing this on any document. I assumed it involved a Replica-Link virtual attribute but coudln't figure out where to go from there.