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,而'password'註釋不是可在vendor/doctrine/orm/lib/Doctrine/ORM/Mapping / – anthony