Issues

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

Issue Type: Bug Created: 2010-01-05T09:25:22.000+0000 Last Updated: 2010-01-21T05:59:46.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Andreas Baumgart (polycaster) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: Attachments:

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

Posted by Ralph Schindler (ralph) on 2010-01-05T10:52:31.000+0000

Please test the version in trunk from r20089

Thanks!

Posted by Andreas Baumgart (polycaster) on 2010-01-05T10:58:16.000+0000

Works fine now. Thank you!

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts