/** * @return \yii\db\ActiveQuery */ public function getMains() { return $this->hasMany(Main::className(), ['amount_id' => 'amount_id']); }