菱田 様
お返事ありがとう御座います。
行なった手順を書かせてもらいます。
1、「composer.phar create-project symfony/framework-standard-edition .」でプロジェクトを開始しました。
2、「app/config/parameters.yml」にDBの設定。
3、「app/console generate:bundle --namespace=App/DbBundle 」でバンドルの作成。
4、「app/config/config.yml」に下記を追加。
doctrine:
orm:
mappings:
global:
type: yml
dir: %kernel.root_dir%/config
prefix: App\DbBundle\Entity
※prerixの部分を理解出来ていません。
5、「app/config/mapping.orm.yml」を作成。
App\DbBundle\Entity\Test:
type: entity
table: test
id:
id:
type: integer
generator: { strategy: AUTO }
fields:
name:
type: string
length: 100
price:
type: decimal
scale: 2
description:
type: text
6、「app/console doctrine:database:create 」データベース作成。
ここからの処理が凄く自分の中で曖昧です。
7、「app/console doctrine:generate:entities App/DbBundle/Entity --path=src/」
エラー:Namespace "App\DbBundle\Entity" does not contain any mapped entities.
ここで止まっている状態です。
先ず最初に「app/console doctrine:generate:entity --entity="AppDbBundle:test"」等でentitiyを作成
してからでないといけないのでしょうか?
お手数では御座いますがご教授頂けると幸いです。