/**
  * @return \yii\db\ActiveQuery
  */
 public function getServices()
 {
     return $this->hasMany(Service::className(), ['type_id' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getService()
 {
     return $this->hasOne(Service::className(), ['id' => 'service_id']);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSers()
 {
     return $this->hasMany(Service::className(), ['id' => 'ser'])->viaTable('sec_ser', ['sec' => 'id']);
 }