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