/** * @return \yii\db\ActiveQuery */ public function getParseOtchets() { return $this->hasMany(ParseOtchet::className(), ['parse_ksk_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getParseOtchet() { return $this->hasOne(ParseOtchet::className(), ['id' => 'parse_otchet_id']); }