Skip to content

Support for multiple connections #19

@moufmouf

Description

@moufmouf

To add support for multiple DB connections, we need to:

  • Edit Configuration to add the ability to put several connections (just like in Doctrine ORM): (see https://symfony.com/doc/current/doctrine/multiple_entity_managers.html)
  • If several connections are passed, use TdbmExtension to dynamically create additional services (TdbmService, Configuration, NamingStrategy)
  • Handle DAO autowiring. Either by finding a way to do this automatically or by dynamically creating all DAOs in the container builder (scan tdbm-[connection].lock and create DAOs accordingly in the container)
  • Modify the TDBM command to accept a new parameter: the "tdbmService" instance name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions