Yii Framework Forum: Sorting in yii 1.1 - Yii Framework Forum

Jump to content

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

Sorting in yii 1.1

#1 User is offline   Vikas Kumar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 28-August 17

Posted 28 August 2017 - 12:25 AM

Hello all,
I have question regarding yii 1.1 sort.
I have three tables ticket, repairLogs and part table .
Following relations have been defined in Ticket model.
'repairLogs' => array(self::HAS_MANY, 'RepairLog', 'ticket_id', 'order'=>'ts DESC'),

and in repairLogs Table
'part' => array(self::BELONGS_TO, 'Part', 'part_id'),

Part table has a column 'number' and I want to sort the data based on "number". Can anyone guide me how to do this since I am new to the yii 1.1 framework.
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