예제 #1
0
 public function getTbesm()
 {
     return $this->hasMany(Barang::className(), ['KD_BARANG' => 'KD_TYPE']);
 }
예제 #2
0
 public function getBrg()
 {
     return $this->hasOne(Barang::className(), ['KD_BARANG' => 'KD_BARANG']);
 }