ZF2-70: zf create dbtable error (dev4)

Issue Type: Bug Created: 2011-09-22T14:51:51.000+0000 Last Updated: 2012-05-31T15:52:06.000+0000 Status: Closed Fix version(s): Reporter: Erdem A. (airdamn) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Tool

Related issues: Attachments:


When I try to create a dbtable using zf (command: zf create dbtable ) I get an Exception with the following message bq. A models directory was not found

Line 63 in Zend\Tool\Project\Provider\DbTable reads bq. if (!($modelsDirectory instanceof ProjectProfile\Resource)) {

I guess it should be bq. if (!($modelsDirectory instanceof \Zend\Tool\Project\Profile\Resource\Resource)) {


Posted by Simon (_sims_) on 2011-09-26T16:25:30.000+0000

I can confirm this on 2.0.0dev4 as well. The model dir does indeed exist as was created by the initial "zf create project".

Posted by Simon (_sims_) on 2011-09-26T16:30:35.000+0000

Replacing ProjectProfile\Resource with \Zend\Tool\Project\Profile\Resource\Resource in Zend/Tool/Project/Provider/DbTable.php, as Mr. Erdem says, fixes this.

Posted by Adam Lundrigan (adamlundrigan) on 2012-02-23T16:54:23.000+0000

Zend\Tool does not work with ZF2 and will be removed. You can clone the ZendSkeletonApplication to get a base working ZF2 project.

Closing as "Wont' Fix" (See Matthew's comment on ZF2-103 here)

Have you found an issue?

See the Overview section for more details.


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

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