/** * @return \yii\db\ActiveQuery */ public function getBatchSubjectAllots() { return $this->hasMany(BatchSubjectAllot::className(), ['batch_sub_allot_batch_id' => 'batch_id']); }
/** * @return \yii\db\ActiveQuery */ public function getBatchSubjectAllots() { return $this->hasMany(BatchSubjectAllot::className(), ['updated_by' => 'user_id']); }