I have a Transaction class. Each object of this class includes one issuing account, one sending account and one receiving account. Each of these is an instance of Account class. In my Transaction table, I have issuer_id, sender_id and receiver_id.
How should I specify relationship between Transaction and Account so that I can call
transaction.issuer
transaction.sender
transaction.receiver
Thank you.