I'm confused on where to place the
BelongsTo in the model.
I have a table named
directory, department can have multiple directory but directory can only have one department. I placed the foreign key in directory table. Now where do I place the belongsTo or hasMany?
I read an explanation in here regarding this where he use a
head and a
brain as an example but i cannot find it anymore.