Hi all,
in my current project i have many-to-many relations. Let’s say between Blog-Postings and Categories . Now when creating a new posting i want to choose multiple categories to be assigned to that posting.
So i modified the create- and update-action to also update the table for the many-to-many assignments (like here larryullman.com/2010/08/10/handling-related-models-in-yii-forms/).
My question is if that is still the correct way to do this or does YII v1.1.8 already provide some code to simplify that?
For example i found out that modifying the loadModel-method (like shown in the article above) is not neccessary anymore since $model->categories is already an array of category-ids.