예제 #1
0
파일: Record.php 프로젝트: vfokov/tims2
 public function getStatusHistory()
 {
     return $this->hasMany(StatusHistory::className(), ['record_id' => 'id'])->orderBy(['stage_id' => SORT_ASC, 'created_at' => SORT_ASC]);
 }
예제 #2
0
파일: Reason.php 프로젝트: vfokov/tims2
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStatusHistory()
 {
     return $this->hasOne(StatusHistory::className(), ['id' => 'status_history_id']);
 }