問題是我在Symfony中定義了2 +個數據庫。當我更新表架構與Symfony2多個數據庫,爲每個表指定數據庫
php app/console dotrine:schema:update --force
它使默認數據庫中的表。我想指定表屬於哪個數據庫。我怎麼能這樣做?
我用YAML(陽明)格式的實體,例如:
Test\ExampleBundle\Entity\TestTable:
type: entity
table: test_table
id:
id:
type: integer
generator:
strategy: AUTO
fields:
name:
type: string
length: 255
sound:
type: smallint
這從文檔可能有幫助 - http://symfony.com/doc/currentbook/doctrine/multiple_entity_managers.html – qooplmao