|
|
@@ -78,7 +78,7 @@ class Countries extends \common\components\ActiveRecord
|
|
|
*/
|
|
|
public static function getAllData()
|
|
|
{
|
|
|
- return static::find()->with('currency')->where('ACTIVE=1')->orderBy('ACTIVE DESC, NAME ASC')->asArray()->all();
|
|
|
+ return static::find()->where('ACTIVE=1')->orderBy('ACTIVE DESC, NAME ASC')->asArray()->all();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -118,8 +118,8 @@ class Countries extends \common\components\ActiveRecord
|
|
|
* 关联currency.
|
|
|
* @return \yii\db\ActiveQuery
|
|
|
*/
|
|
|
- public function currency()
|
|
|
- {
|
|
|
- return $this->hasOne(Currency::className(), ['ID' => 'LOCAL_CURRENCY_ID']);
|
|
|
- }
|
|
|
+// public function currency()
|
|
|
+// {
|
|
|
+// return $this->hasOne(Currency::className(), ['ID' => 'LOCAL_CURRENCY_ID']);
|
|
|
+// }
|
|
|
}
|