ok so i have a case_file which has many victims. it can also have many suspects and vice versa. how do i do that in yii so that whenever i view a case file, it will display all the victims and supects in it. im just new here so forgive me if my questions kinda dumb. thanks :)

The question is too general and depends on the database design…

Design your database first.

Then use Gii and the rest usually follows.

You need a database schema first, so go ahead and design one. :)