コードでバンドル エンティティを生成するとき
php app/console doctrine:generate:entities EnsJobeetBundle
このエラーが発生しています
[Doctrine\Common\Persistence\Mapping\MappingException] クラス「Ens\JobeetBundle\Entity\Affiliate」のマッピング ファイル「Ens.JobeetBundle.Entity.Affiliate.orm.yml」が無効です。
これは Affiliate.orm.yml ファイルです:
Ens\JobeetBundle\Entity\Affiliate:
type: entity
table: affiliate
id:
id:
type: integer
generator: { strategy: AUTO }
fields:
url:
type: string
length: 255
email:
type: string
length: 255
unique: true
token:
type: string
length: 255
created_at:
type: datetime
oneToMany:
category_affiliates:
targetEntity: CategoryAffiliate
mappedBy: affiliate
lifecycleCallbacks:
prePersist: [ setCreatedAtValue ]