Issues

ZF-11349: Zend tool's DbAdapter should allow overwriting of existing options

Description

Zend Tool's DbAdapter should allow overwriting of existing options such as DbTable does ...


zf configure dbadapter "adapter=Pdo_Sqlite&dbname=../data/test.db" development -f
zf configure dbadapter "adapter=Pdo_Sqlite&dbname=../data/test.db" development --force-overwrite

Comments

Patch attached

Reviewed and committed on behalf of Kim Fixed in trunk r24026

This patch does not work, reverting.

The improvement here is much harder than this. Changes must be run through the ApplicationConfigFile Context and then written from that context.

Currently, ApplicationConfigFile's removeItem() does not search for entire "trees" of values, it searches for specific values. If you'd like to explore a better patch, I can help you, find me on #zftalk.dev.

Backed out r24026 from trunk in r24075