示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getWeekday0()
 {
     return $this->hasOne(Basweekday::className(), ['weekdayid' => 'weekdayid']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getWeekdays()
 {
     return $this->hasMany(Basweekday::className(), ['weekdayid' => 'weekdayid'])->viaTable('acdexamdate', ['learningperiodid' => 'learningperiodid']);
 }