/** * @return \yii\db\ActiveQuery */ public function getAgenda() { return $this->hasOne(Agendas::className(), ['id' => 'agenda_id']); }