/** * @return \yii\db\ActiveQuery */ public function getCenter() { return $this->hasOne(Acdcenter::className(), ['centerid' => 'centerid']); }
/** * @return \yii\db\ActiveQuery */ public function getAcdcenters() { return $this->hasMany(Acdcenter::className(), ['directorid' => 'personid']); }