I was studing yii and looking at the blog's example.
I noticed that we have Tag, Post, Comment and User models and Post, Comment crud.
I was looking at Post.php model class. And i noticed that you used raw SQL statements and execute them with the database connection to manipulate PostTag table.
My question is: why don't you create a PostTag model? Which are the reasons?
I’m trying to understand the strucuture of Yii and the best behaviour to apply
Thank you very much, if you some more hints you are welcome