/** * @return \yii\db\ActiveQuery */ public function getSectionBatch() { return $this->hasOne(Batches::className(), ['batch_id' => 'section_batch_id']); }
public function getRelBatchData() { return $this->hasOne(\app\modules\course\models\Batches::className(), ['batch_id' => 'fees_pay_tran_batch_id']); }
/** * @return \yii\db\ActiveQuery */ public function getStuMasterBatch() { return $this->hasOne(\app\modules\course\models\Batches::className(), ['batch_id' => 'stu_master_batch_id']); }
public function getFeesCollectBatch() { return $this->hasOne(Batches::className(), ['batch_id' => 'fees_collect_batch_id']); }
/** * @return \yii\db\ActiveQuery */ public function getBatches() { return $this->hasMany(Batches::className(), ['batch_course_id' => 'course_id']); }