/** * @return \yii\db\ActiveQuery */ public function getDrugs() { return $this->hasMany(Drug::className(), ['unit_id' => 'unit_id']); }