问题是我在 Symfony 中定义了 2 个以上的数据库。当我用
php app/console dotrine:schema:update --force
它使表在默认数据库中。我想指定该表属于哪个数据库。我怎么能这样做?
我对实体使用 yaml(yml) 格式,例如:
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