/** * @return \yii\db\ActiveQuery */ public function getAtc() { return $this->hasOne(Atcinfo::className(), ['id' => 'atcid']); }