0

我使用教义 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

但是,问题是,我的数据库中没有创建表。这有什么问题?

4

1 回答 1

0

我曾经运行过教义模块 orm:validate-schema,然后是教义模块 orm:schema-tool:create。这是尝试的好项目: Fmi-example on github

于 2013-08-29T14:02:43.183 回答