Re: Model association, I've made it correctly???

2010-10-17 Thread euromark
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. >

Model association, I've made it correctly???

2010-10-17 Thread Mariano C.
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