Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSchool()
 {
     return $this->hasOne(School::className(), ['id' => 'school_id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCollegeToApply2()
 {
     return $this->hasOne(School::className(), ['school_name' => 'college_to_apply2']);
 }
Пример #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSchoolSchool()
 {
     return $this->hasOne(School::className(), ['school_id' => 'subject_scholar_school_school_id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSchools()
 {
     return $this->hasMany(School::className(), ['barangay_id' => 'barangay_id']);
 }