2013-08-27 27 views
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 

但是,問題是,我的數據庫中沒有創建表酶。這有什麼問題?

+0

你確定你選擇/尋找合適的數據庫嗎? – cptnk

+0

是的。該配置是在config/autoload/doctrine.local.php文件..我沒有接觸該文件夾中的doctrine.php文件。 – user231791

+0

請貼上您的doctrine.local配置。當你運行validate-schema(db更新之後)時,什麼是doctrine-module? –

回答

0

我用來運行學說模塊ORM:證實模式然後學說模塊ORM:架構工具:創建。 這裏是一個很好的項目嘗試: Fmi-example on github

相關問題