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