Issue with SelectModel plugin overriding original field value #2136
Unanswered
nadar
asked this question in
Questions & Problems
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Q:
When I use
SelectModel
plugin like in below example, thecustomer_id
field is overriden with the customer name and I can no longer get the actual customer ID. MygetCustomer()
relation is failing to get the customer object..How can I still access the
customer_id
?A:
Its described in the guide https://luya.io/guide/ngrest-plugin-select
This is also the reason why i personally do not recommend to use SelectModel. Use SelectRelationActiveQuery whenever possible
Beta Was this translation helpful? Give feedback.
All reactions