Yii Framework Forum: STAT query to count similar records - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

STAT query to count similar records Rate Topic: -----

#1 User is offline   dyabr 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 24-November 10

Posted 17 December 2010 - 04:27 AM

Hi
For example I have model (CActiveRecord)
class Model
{
 public $id;
 public $type;
}

how it is possible to provide statistical relation returning amount of records with the same type?

thx
0

#2 User is offline   dyabr 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 24-November 10

Posted 17 December 2010 - 05:49 AM

It seems to be that Yii cannot handle non integer keys and indexes.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users