protected function getProdetail($id) { $datas = Prodetail::find()->where(['PROHEAD_ID' => $id])->all(); return $this->MapData($datas, 'PRODETAIL_ID', 'PRODETAIL_NAME'); }
public function getProdetails() { return @$this->hasOne(Prodetail::className(), ['PRODETAIL_ID' => 'prodetail']); }