ZF-8714: Undefined variable: testModelResource /Zend/Tool/Project/Provider/Model.php

Description

There seems to be some debugging code still alive in Model.php.

Tested with current trunk and PHP 5.3.0.

Scenario, error message and stacktrace:

andreas@wonderlustking-2:~/Workspace/blog.andreas.polycast.de # zf create model articles Creating a model at /Users/andreas/Documents/Workspaces/BrainStore/blog.andreas.polycast.de/application/models/Articles.php

Notice: Undefined variable: testModelResource in /Users/andreas/Documents/Workspaces/BrainStore/ZendFramework/library/Zend/Tool/Project/Provider/Model.php on line 145

Call Stack: 0.0013 797568 1. {main}() /Users/andreas/WebStack/PHP-5.3.0/bin/zf.php:0 0.0014 797568 2. ZF::main() /Users/andreas/WebStack/PHP-5.3.0/bin/zf.php:616 0.0049 1234208 3. ZF->run() /Users/andreas/WebStack/PHP-5.3.0/bin/zf.php:74 0.0049 1234208 4. ZF->_runTool() /Users/andreas/WebStack/PHP-5.3.0/bin/zf.php:117 0.0060 1355768 5. Zend_Tool_Framework_Client_Abstract->dispatch() /Users/andreas/WebStack/PHP-5.3.0/bin/zf.php:592 0.1131 7492488 6. Zend_Tool_Framework_Client_Abstract->_handleDispatch() /Users/andreas/Documents/Workspaces/BrainStore/ZendFramework/library/Zend/Tool/Framework/Client/Abstract.php:241 0.1131 7493088 7. Zend_Tool_Framework_Client_Abstract->_handleDispatchExecution() /Users/andreas/Documents/Workspaces/BrainStore/ZendFramework/library/Zend/Tool/Framework/Client/Abstract.php:322 0.1131 7493528 8. call_user_func_array() /Users/andreas/Documents/Workspaces/BrainStore/ZendFramework/library/Zend/Tool/Framework/Client/Abstract.php:328 0.1131 7493952 9. Zend_Tool_Project_Provider_Model->create() /Users/andreas/Documents/Workspaces/BrainStore/ZendFramework/library/Zend/Tool/Framework/Client/Abstract.php:0

Updating project profile '/Users/andreas/Documents/Workspaces/BrainStore/blog.andreas.polycast.de/.zfproject.xml'

Cheers! Andreas

Comments

Please test the version in trunk from r20089

Thanks!

Works fine now. Thank you!