Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSecs()
 {
     return $this->hasMany(SecService::className(), ['id' => 'sec'])->viaTable('sec_ser', ['ser' => 'id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSec0()
 {
     return $this->hasOne(SecService::className(), ['id' => 'sec']);
 }