Product possibly owned by different types of objects
I have an object called Product. A product can be owned by a Person, a Company, multiple Companies or even a mix of Persons and Companies. How can I represent that using :twenty: ?
4 Replies
Hey what you're looking for are https://github.com/twentyhq/core-team-issues/issues/186
GitHub
🦠 Polymorphic relation type · Issue #186 · twentyhq/core-team-...
There are a few cases in the code base where we had to hardcode things because we had to create a morph relationship. It's currently use in Favorite, NoteTarget and TaskTarget. We do things lik...
Still in wip !
wow in wip since September 2024 it won't help me build an application by the end of the year .... Any workaround in the meantime ? Not use an FK and just have a json field ?
Hey, if you have a look you will see that the issue has been created at this date but the issue has been started 2 months ago
No workaround if it's not creating several distinct many to one or activating the morph relation feature flag
cc @Guillaume