/**
  * @return \yii\db\ActiveQuery
  */
 public function getPerson()
 {
     return $this->hasOne(Basperson::className(), ['personid' => 'personid']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPeople()
 {
     return $this->hasMany(Basperson::className(), ['personid' => 'personid'])->viaTable('acdmoodlesubscription', ['groupid' => 'groupid']);
 }