doctrine

  1. doctrine 多数据库配置
     # Doctrine Configuration
     doctrine:
         dbal:
             default_connection: default
             connections:
                 default:
                     driver:   pdo_pgsql
                     host:     '%database_host1%'
                     port:     '%database_port1%'
                     dbname:   '%database_name1%'
                     user:     '%database_user1%'
                     password: '%database_password1%'
                     charset:  UTF8
                     mapping_types:
                         enum: string
                 other:
                     driver:   pdo_pgsql
                     host:     '%database_host2%'
                     port:     '%database_port2%'
                     dbname:   '%database_name2%'
                     user:     '%database_user2%'
                     password: '%database_password2%'
                     charset:  UTF8
                     mapping_types:
                         enum: string
         orm:
             default_entity_manager: default
             entity_managers:
                 default:
                     connection: default
                     mappings:
                         DBBundle: ~
                 other:
                     connection: other
                     mappings:
                         DBBundle: ~
    
@耿志环 2012-∞ 冀ICP备17033181号, powered by Gitbook修订: 2018-05-23 16:25:59

results matching ""

    No results matching ""