/** * @return \yii\db\ActiveQuery */ public function getResults() { return $this->hasMany(Result::className(), ['election_id' => 'id']); }