예제 #1
0
 public function getProfitCenter()
 {
     return $this->hasOne(ProfitCenter::className(), ['number' => 'profit_center_id']);
     //return $this->belongsTo(ProfitCenter::className(), ['profit_center_id']);
 }