you probably meant
"Type hasMany BooksUser"...
On 17 Okt., 22:17, "Mariano C." wrote:
> I'm studing model associations, I would know if i've understand it
> correctly:
>
> I have five tables: users, books, books_users, authors and types.
> users, authors and types just have PK field called id.
>
I'm studing model associations, I would know if i've understand it
correctly:
I have five tables: users, books, books_users, authors and types.
users, authors and types just have PK field called id.
books have PK called id and FK called author_id (ref. Authors)
books_users have PK called id and 3