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