/**
  * @return \yii\db\ActiveQuery
  */
 public function getRegistrations()
 {
     return $this->hasMany(Registration::className(), ['registration_type_id' => 'id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRegistration()
 {
     return $this->hasOne(Registration::className(), ['id' => 'registration_id']);
 }