Пример #1
0
 /**
  * @param $record_id
  * @return array|null|StatusHistory
  */
 private static function getHistoryStatus($record_id)
 {
     if (is_null(self::$history)) {
         $condition = ['record_id' => $record_id, 'status_code' => CaseStatus::AWAITING_DEACTIVATION];
         self::$history = StatusHistory::find()->where($condition)->orderBy(['id' => SORT_DESC])->one();
     }
     return self::$history;
 }