/** * @return \yii\db\ActiveQuery */ public function getOkr() { return $this->hasOne(Okr::className(), ['okr_id' => 'id_okr']); }