/** * @return \yii\db\ActiveQuery */ public function getAcdcurricularcomponents() { return $this->hasMany(Acdcurricularcomponent::className(), ['centerid' => 'centerid']); }
/** * @return \yii\db\ActiveQuery */ public function getCurricularcomponent() { return $this->hasOne(Acdcurricularcomponent::className(), ['curricularcomponentid' => 'curricularcomponentid', 'curricularcomponentversion' => 'curricularcomponentversion']); }