Skip to content

Add connection config option #79

@rizqidjamaluddin

Description

@rizqidjamaluddin

Can we add a config option to set which DB connection to use? The only real change is to line 149 of the service provider to use $config['doctrine::doctrine.connection'] ?: $config['database.default'] and, of course, the line in the config file.

Rationale: I'm using the database for things other than doctrine's entities, so I'd like doctrine to use its own database connection. Also just generally a good config option to have.

I can submit a PR for this if approved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions