Symfony2のapp/console エンティティ周り

// データベース作成・削除
php app/console doctrine:database:drop --force
php app/console doctrine:database:create

// バンドルの作成
php app/console generate:bundle --namespace="My/ProjectBundle" --format=yml

// エンティティの作成 --fieldsオプションも付けられます
php app/console doctrine:generate:entity --entity=MyProjectBundle:Post --format=yml

// yml Entityからモデルを作成 --no-backupでバックアップを作成しない
php app/console doctrine:generate:entities "MyProjectBundle" --no-backup

// エンティティからテーブルの作成・更新
php app/console doctrine:schema:create
php app/console doctrine:schema:update --force

ymlエンティティ作成に関してfieldsの詳細は
http://symfony.com/doc/2.0/reference/forms/types.html

relationsなどに関して
http://stackoverflow.com/questions/7546377/problem-with-symfony2-schema-yaml-unable-to-get-relationships-working