1
私はFOS_User
エンティティにpassword
フィールドをオーバーライドし、この方法:無効なフィールドの上書きが
* @ORM\AttributeOverrides({
* @ORM\AttributeOverride(name="password",
* [email protected]\Column(
* nullable=true
* )
* )
* })
./app/console doctrine:schema:validate
チェックが細かいです:
[Mapping] OK - The mapping files are correct.
[Database] OK - The database schema is in sync with the mapping files.
しかし、私はgenerate:doctrine:entities
コマンドを実行すると次のエラーが表示されます。
Invalid field override named 'password' for class 'MyAppBundle\Entity\User'.
私の設定に何が間違っていますか?
@ORMの\パスワード教義の最新バージョンを使用してください)が認識されない: '[意味論的エラー] My \ AppBundle \ Entity \ User :: $プロパティの "@Doctrine \ ORM \ Mapping \ password"アノテーションが存在しないか、または自動ロードできませんでした "私はSymfony 2.5を使用しています。 vendor/doctrine/orm/lib/Doctrine/ORM/Mapping / – anthony