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