Related Tables :( Again And Again

Hi from new comer and from Turkey

The Question is I have tables like below. How can i use properly and models must be ?


id <- PK



user_id (int) <- PK and FK

vote_id (int) <- PK and FK

status (bool)

comment (string)


id <- PK


I want to prepare profile page that shows users votes allow or not and comment string properly…

So how to do many to many with extra fields.

one_to many split connections may be too but really guys i dunnno how to do that… Please can some one guide on this

thanks from now.

Look at my Related Search Behavior extension - there is a demo with it where you can check how some of the relations are set.