Closed idahogurl closed 5 years ago
Hi @idahogurl ,
It looks to be a configuration issue of your Sequelize members
model. A member
should belongsTo
a state
and a country
(instead of hasOne
).
If I am right, this is not an issue of the Forest Liana, but a bad configuration on your side.
@arnaudbesnier I have tried belongsTo. Still is not working.
@arnaudbesnier The trick was that I needed to specify foreignKey = "stateId"
and targetKey = "id"
as well as changing to belongsTo
. That would be good to add to your documentation.
I try to update a member's state and no changes are made.
Expected behavior
The relationship changes to the selected value.
Actual behavior
No changes are made.
Context
There are only SELECT statements no UPDATE
Network Panel from request is sending the right id (80 = Punjab, Pakistan)
Video showing steps https://youtu.be/uaFOvigauCg
Zip of my Models https://www.icloud.com/iclouddrive/0NawNHQCPitC0cdoh91KjEWeQ#models