/** * @return \yii\db\ActiveQuery */ public function getCountry() { return $this->hasOne(Country::className(), ['id' => 'country_id']); }
public function getShipfromname() { return $this->hasOne(\common\models\Country::className(), ['Cry_id' => 'shipfrom']); }