You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The as part has to be included in the find call as well.
Or you can save the output from the association, e.g. medicos.Hospitales = models.medicos.belongsTo... and then include {assocation: medicos.Hospitales }
What you are doing?
_Hello, Im trying to associate 2 tables but Im getting an error that says "hospitales" is not associated with "medicos"!
I have 2 tables "medicos" and "hospitales" where "medicos" belongsTo "hospitales" and "hospitales" has many "medicos"
Here you will find my code for hospitales table
here you will find the code for "medicos" table
and here you will find my controller where is my query
What do you expect to happen?
I want to retrieve all the "medico" data like this
What is actually happening?
Dialect: mysql
The text was updated successfully, but these errors were encountered: