/** * * @return \yii\db\ActiveQuery */ public function getSlots() { return $this->hasMany(Slot::className(), ['agendaID' => 'agendaID']); }
/** * @return \yii\db\ActiveQuery */ public function getSlot() { return $this->hasOne(Slot::className(), ['slotID' => 'slotID']); }