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