of course I have 2 models, Question and QuestionCategory
If I’m trying to do something like this, I got error and it won’t add anything to my question_question_category table:
$question = new Question();
$question_category = QuestionCategory::model()->findByPk(1);
$question->tblQuestionCategories[] = $question_category;
I want to know how can I add something in my question_question_category table ? (without generatin a QuestionQuestionCategory model and doing it manually)