V5 - Relationship getter with parameters #1491
Unanswered
danpospisil
asked this question in
Help
Replies: 1 comment
-
I have managed to fix this by using this workaround:
I don't find this as a very clean approach. Is there any other solution? |
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
-
Hi,
I have an app in v4.1 - I am using simple User model with OneToMany relationship to get user configuration (stored in Config model). I have a method defined directly in App/Models/User.js which gets specific configuration option - specified by moduleName and optionName. The method also decrypts the value it if necessary (I need to encrypt sensitive configuration options only - not all of them):
Now I am trying to convert it to v5 and I have this working code:
As I said, the code seems to work, but I am getting these error messages:
What am I missing? I bet its something basic..
Beta Was this translation helpful? Give feedback.
All reactions