protected function getAmphur($id) { $datas = Amphur::find()->where(['PRV_CODE' => $id])->all(); return $this->MapData($datas, 'AMP_CODE', 'AMP_DESC'); }
protected function getAmphur($id) { $datas = Amphur::find()->where(['PROVINCE_ID' => $id])->all(); return $this->MapData($datas, 'AMPHUR_ID', 'AMPHUR_NAME'); }