/** * @return \yii\db\ActiveQuery */ public function getDistricts() { return $this->hasMany(District::className(), ['city' => 'alpha']); }