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