Suppose you have an Application in Yii that manages hotels each one has many customers.
Suppose you have an Application in Yii that manages hotels each one has many customers.
class Post extends CActiveRecord {
...
}
`
When you list Authors in grid you would like to print the count of posts in column, allow sorting on this column and probably filtering by the count.