Polymorphic Relationship integration #4982
Unanswered
Stephan-MC
asked this question in
Help
Replies: 1 comment
-
it's been a long wait... i think i can't have assistance on polymorphic relationships on adonisJS. I guess i'll just look for another framework which is compatible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently in a startup which is trying to develop a small tech ecosystem to provide mulitple services and choosed adonisJS as backend. We got an issue where we needed to choose whether or not to use polymorphic relationships and saw it'll be beneficial to use them for maintainance purpose and scalability.
i start implementing a decorator to create polymorphic relations in adonisJS but got stucked along the line where i can understand what is wrong.
let me try breaking things down. I created a monel named
attachment
which should handle an file (document, image, video, etc) associated with another model (User, Post, etc..).i started something like this below but got to some point where i don't understand what's going wrong and my adonis server truncates errors which i can use to debug.
will really appreciate if someone from the lucidORM team or anyone really confortable with this ORM to help me understand how i could come up with this.
Beta Was this translation helpful? Give feedback.
All reactions