我使用教义 2 在 zend 框架 2 中创建了实体。之后,我使用此命令来验证当前模式。
./vendor/bin/doctrine-module orm:validate-schema
我得到如下输出:
Mapping] OK - The mapping files are correct.
[Database] FAIL - The database schema is not in sync with the current mapping file.
然后我执行了更新命令,
./vendor/bin/doctrine-module orm:schema-tool:update --force
输出如下:
Database schema updated successfully! "7" queries were executed
但是,问题是,我的数据库中没有创建表。这有什么问题?