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