public function actionGetEventMessage($id) { if (Yii::$app->request->isAjax) { return $this->renderPartial('view/event-message', ['model' => ConnectionEvent::findOne($id)]); } }
public function getHistory() { return $this->hasMany(ConnectionEvent::className(), ['conn_id' => 'id']); }