In my app there is a Transaction table with: seller_id, buyer_id and asset_id.
seller_id and buyer_id are id's supposed to point to Users table. To stick to the convention and keep automatic associations both should be called "user_id" (which is of course impossible)
What is the correct way to create such associations in CakePHP 3.x?
My guess is that I should create special association tables: Sellers (id, user_id) Buyers (id, user_id)
and then associations would be trough those tables: Transaction => Sellers, Buyers => Users
Is that correct? Would it work? Is there a better way?