Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBuildGuides()
 {
     return $this->hasMany(BuildGuide::className(), ['visibility_fk' => 'visibility_id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBuildFk()
 {
     return $this->hasOne(BuildGuide::className(), ['build_guide_id' => 'build_fk']);
 }
Beispiel #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBuildGuides()
 {
     return $this->hasMany(BuildGuide::className(), ['user_fk' => 'user_id']);
 }
Beispiel #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBuilds()
 {
     return $this->hasMany(BuildGuide::className(), ['build_guide_id' => 'build_guide_fk'])->viaTable('build_part', ['part_fk' => 'part_id']);
 }