問題は、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