我已经使用规则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但是,问题是,我的数据库中没有创建任何表。这有什么问题吗?
发布于 2013-08-29 22:02:43
我过去常常运行规则模块orm:validate-schema,然后运行规则模块orm:schema-tool:create。下面是一个值得尝试的好项目:Fmi-example on github
https://stackoverflow.com/questions/18468587
复制相似问题