/** * @return \yii\db\ActiveQuery */ public function getSender0() { return $this->hasOne(Section::className(), ['id' => 'sender']); }
public function getDepart_role() { return $this->hasOne(Section::className(), ['id' => 'location']); }
/** * @return \yii\db\ActiveQuery */ public function getSections() { return $this->hasMany(Section::className(), ['updated_by' => 'user_id']); }
/** * @return \yii\db\ActiveQuery */ public function getSectionsdata() { return $this->hasMany(Section::className(), ['sec_id' => 'usec_section_id'])->via('sections'); }
/** * @return \yii\db\ActiveQuery */ public function getSection() { return $this->hasOne(Section::className(), ['sec_id' => 'usec_section_id']); }
/** * @return \yii\db\ActiveQuery */ public function getSections() { return $this->hasMany(Section::className(), ['catalog_id' => 'id_catalog']); }
/** * @return \yii\db\ActiveQuery */ public function getSectionwithguests() { $query = $this->hasMany(Section::className(), ['sec_cnf_id' => 'cnf_id'])->with('guests'); return $query; }