Код: Выделить всё
public function relations()
{
return array(
'category' => array(self::BELONGS_TO, 'category', 'category_id'),
);
}
Object of class Category could not be converted to string
Все 10 раз перепроверил... в чем может быть проблема?