Hello,
I have created 2 tables, one for posts, one for categories via mysql benchmark.
When I created a relation many to many it created a third table called "categories_has_posts".
Now in Gii, what do I do? Shall I generate a crud for this table or not?
Because at the moment I am stuck, I create the model controlller and crud for the POSTS and for the Categories. On the posts page, I call via a dropdown menu all the categories. When I create a post, I can now choose a category but that middle table seems not to be in use at all, no data is going inside.
How does it works with many to many relations please as I am totally lost on that one.
Thanks,
Ben