php - Models in Yii Framework? -


I create a website application using the YI Framework.

I want to use the model with query like this:

  SELECT u.id, u.username, u.score, (SELECT COUNT (ownerId) Posted by P WHERE p.ownerId = u.id) as per U.U. Score DESC, Total Posts DESC LIMIT 10  

Please change the query in the Yii Framework model Help me out

The related chapter "Fixed Guide to Yii" -


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -