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

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -