ZF-11767: zf create db-table.from-database disallow to use force-overwrite without module name

Description

We can't use force-overwrite option if project's db-table models was created by default (without module name definition) But we can to create models without module name at first time.

Steps to reproduce:


zf create project demo
cd demo
zf configure db-adapter "adapter=Mysqli&dbname=mysql&host=localhost&username=user&password=user_pass"
zf create db-table.from-database

all created - ok.

Then try to recreate


zf create db-table.from-database // Error as expected
zf create db-table.from-database force-overwrite // Error - we should define module name (but we doesn't have it) 
zf create db-table.from-database default force-overwrite // Error - yep, we doesn't created default module, then error expected
zf create db-table.from-database application force-overwrite //Error - same

So, there no way to recreate....

Workaround Remove manually all files from application/models/DbTables And remove appropriate sections for tables in in .zfproject.xml

Comments

try


zf create db-table.from-database --force-overwrite=true

Its ran for me.

Thanks, it works... But could you give one more advice? Where can i find this in documentation? Because tool's commandline help does not describe such syntax for keys

Suggest for improvement documentation