You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Took me a while to figure this one out, in order to generate the database tables you must first generate your application models:
zf generate-models-from-yaml doctrine
zf build-project doctrine --load
Much of the confusion stems from the latter command in particular not actually reporting any errors related to the inability to generate tables. Some source debugging indicates that Doctrine will silently "create" a list of tables which have been populated into an array as a result of loading the application models, however Doctrine will not report an error when that array happens to be empty, which is the case when the above command #1 is not executed first.
[Edit: Finally, to load your fixtures after executing the above two commands, execute zf load-data doctrine. Works like a charm. :-)]
Thanks!
Jason
The text was updated successfully, but these errors were encountered:
In the case of a modular set-up, you may also need to create a module bootstrap containing something like the following:
class Default_Bootstrap extends Zend_Application_Module_Bootstrap
{
protected $_moduleName = 'default';
Took me a while to figure this one out, in order to generate the database tables you must first generate your application models:
Much of the confusion stems from the latter command in particular not actually reporting any errors related to the inability to generate tables. Some source debugging indicates that Doctrine will silently "create" a list of tables which have been populated into an array as a result of loading the application models, however Doctrine will not report an error when that array happens to be empty, which is the case when the above command #1 is not executed first.
[Edit: Finally, to load your fixtures after executing the above two commands, execute zf load-data doctrine. Works like a charm. :-)]
Thanks!
Jason
The text was updated successfully, but these errors were encountered: