/** * @return \yii\db\ActiveQuery */ public function getCities() { return $this->hasMany(City::className(), ['city_country_id' => 'country_id']); }
/** * @return \yii\db\ActiveQuery */ public function getCities() { return $this->hasMany(City::className(), ['canton_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getCity() { return $this->hasOne(City::className(), ['id' => 'cityId']); }
public function getCities() { return $this->hasMany(City::className(), ['id' => 'city_id'])->viaTable('registration_by_cities', ['registration_id' => 'id', 'registration_type' => 'registrationType']); }
/** * @return \yii\db\ActiveQuery */ public function getCities() { return $this->hasMany(City::className(), ['updated_by' => 'user_id']); }
/** * @return \yii\db\ActiveQuery */ public function getDischargeCity() { return $this->hasOne(City::className(), ['city_id' => 'discharge_city_id']); }
/** * @return \yii\db\ActiveQuery */ public function getCities() { return $this->hasMany(City::className(), ['city_state_id' => 'state_id']); }
/** * @return \yii\db\ActiveQuery */ public function getEmpPaddCity() { return $this->hasOne(City::className(), ['city_id' => 'emp_padd_city']); }
/** * @return \yii\db\ActiveQuery */ public function getRegion() { return $this->hasOne(City::className(), ['id' => 'region_id']); }
public function getCityVariants() { return $this->hasMany(City::className(), ['cityID' => 'id']); }
* @var \app\modules\shop\models\OrderDeliveryInformation $orderDeliveryInformation * @var boolean $immutable * @var string $action * @var \yii\bootstrap\ActiveForm $form */ ?> <h3><?php echo Yii::t('app', 'Delivery information'); ?> </h3> <?php echo $form->field($deliveryInformation, 'country_id')->dropDownList(\app\components\Helper::getModelMap(\app\models\Country::className(), 'id', 'name'), ['readonly' => $immutable]); ?> <?php echo $form->field($deliveryInformation, 'city_id')->dropDownList(\app\components\Helper::getModelMap(\app\models\City::className(), 'id', 'name'), ['readonly' => $immutable]); ?> <?php echo $form->field($deliveryInformation, 'zip_code')->textInput(['readonly' => $immutable]); ?> <?php echo $form->field($deliveryInformation, 'address')->textarea(['readonly' => $immutable]); ?> <?php echo $form->field($orderDeliveryInformation, 'shipping_option_id')->dropDownList(\app\components\Helper::getModelMap(\app\modules\shop\models\ShippingOption::className(), 'id', 'name'), ['readonly' => $immutable]); ?> <?php /** @var \app\properties\AbstractModel $abstractModel */ $abstractModel = $orderDeliveryInformation->getAbstractModel();
/** * Получить город пользователя * @return City */ public function getCity() { if ($this->city_id) { return $this->hasOne(City::className(), ['id' => 'city_id']); } else { return new City(); } }
public function getCity() { return $this->hasMany(City::className(), ['city_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getCities() { return $this->hasMany(City::className(), ['rec_status_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getCityFk() { return $this->hasOne(City::className(), ['city_id' => 'city_fk']); }
/** * @return \yii\db\ActiveQuery */ public function getCities() { return $this->hasMany(City::className(), ['CountryCode' => 'Code']); }