Answer the question
In order to leave comments, you need to log in
How to link 3 belongsTo table?
I'm trying to link 3 tables
news.belongsTo(user);
user.belongsTo(people);
In news , the userId column is normally created and referenced in the right place. But here in the user, not peopleId is created, but personId, and it is not attached to anything at all, just an int column, why is that?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question