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