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