/** * @return \yii\db\ActiveQuery */ public function getDenuncias() { return $this->hasMany(Denuncias::className(), ['articulo' => 'idarticulo']); }