/** * @return \yii\db\ActiveQuery */ public function getReporte() { return $this->hasOne(Reporte::className(), ['id' => 'reporte_id']); }
public function getReporte() { return $this->hasMany(Reporte::className(), ['usuario_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getReportes() { return $this->hasMany(Reporte::className(), ['aliado_id' => 'id']); }