Django Project, to cite an example, has a feature called Generic Relations by which you can have one Entity (ie: Task) which has a foreign key to an undefined type (ie: Project, Case).
How could this be implemented in CUBA? (I’m on 7.0 beta)
There are two use cases I have in mind now:
- I have a Task Entity which has a root attribute which might point to either a Project, Account or some other Entities. Having a different Task for each possible link is crazy.
- I have a Document Entity which has a root attribute which might point to either Account, Case, TaxFiling, … pretty much any object can have documents attached.
What would be the CUBA way?