CakePHP belongsTo relationship with a variable 'model' field.
- by gomezuk
I've got a problem with a belongsTo relationship in CakePHP.
I've got an "Action" model that uses the "actions" table and belongs to one of two other models, either "Transaction" or "Tag". The idea being that whenever a user completes a transaction or adds a tag, the action model is created to keep a log of it. I've got that part working, whenever…