Database FAIL - The database schema is not in sync with the current mapping file

后端 未结 7 1633
南方客
南方客 2020-12-10 04:03

Can anybody explain the following doctrine schema validation error message please:

\"The

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 04:42

    If you are running those commands:

    php bin/console doctrine:schema:update --force --complete --dump-sql
    

    and the generated SQL does not create new Entities (no CREATE TABLE), you better check if your mapping is okay. In my case I forgot to put this in the mapping:

     * @ORM\Entity
    

提交回复
热议问题