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

Issue Type: Improvement Created: 2011-05-07T11:10:50.000+0000 Last Updated: 2011-05-28T22:35:40.000+0000 Status: Open Fix version(s): Reporter: Kim Blomqvist (kblomqvist) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: Attachments: - ZF-11349.patch


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

<pre class="highlight">
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


Posted by Kim Blomqvist (kblomqvist) on 2011-05-07T12:19:02.000+0000

Patch attached

Posted by Adam Lundrigan (adamlundrigan) on 2011-05-07T19:01:04.000+0000

Reviewed and committed on behalf of Kim Fixed in trunk r24026

Posted by Ralph Schindler (ralph) on 2011-05-28T20:30:22.000+0000

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

Posted by Adam Lundrigan (adamlundrigan) on 2011-05-28T22:32:54.000+0000

Backed out r24026 from trunk in r24075

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.