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
但是,問題是,我的數據庫中沒有創建表酶。這有什麼問題?
你確定你選擇/尋找合適的數據庫嗎? – cptnk
是的。該配置是在config/autoload/doctrine.local.php文件..我沒有接觸該文件夾中的doctrine.php文件。 – user231791
請貼上您的doctrine.local配置。當你運行validate-schema(db更新之後)時,什麼是doctrine-module? –