i have in database one table, her data can be related with many tables, and i am using table below. 
Columns:
- object - class name of the related model,
- object_id - her id,
- reason_id - id of the row in dictionary,
- comment - text decription
How to write this relation, using hasMany() and viaTable() methods ?