예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRentRequisitionDetails()
 {
     return $this->hasMany(RentRequisitionDetail::className(), ['name' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getLinePbRent()
 {
     return $this->hasOne(RentRequisitionDetail::className(), ['id' => 'line_pb_rent_id']);
 }