/**
  * @return \yii\db\ActiveQuery
  */
 public function getTransService()
 {
     return $this->hasOne(Services::className(), ['service_id' => 'trans_service_id']);
 }
Ejemplo n.º 2
0
 public function getServices()
 {
     return $this->hasMany(Services::className(), ['category_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTransServices()
 {
     return $this->hasMany(Services::className(), ['service_id' => 'trans_service_id'])->viaTable('transaction_detail', ['trans_id' => 'trans_id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPriceService()
 {
     return $this->hasOne(Services::className(), ['service_id' => 'price_service_id']);
 }