Bug #7726

model kickstarter doesn't accept comma seperated model names

Added by Soren Malling over 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Should have
Target version:
-
Start date:
2010-05-09
Due date:
% Done:

0%


Description

TurtleJoe:flow3 sorenmalling$ ./flow3 kickstart controller PhotoDatabase Album,Photo
+ .../Packages/Application/PhotoDatabase/Classes/Controller/AlbumController.php
+ .../Templates/Album/index.html
+ .../Packages/Application/PhotoDatabase/Classes/Controller/PhotoController.php
+ .../Templates/Photo/index.html
TurtleJoe:flow3 sorenmalling$ ./flow3 kickstart model PhotoDatabase Album,Photo
+ .../Packages/Application/PhotoDatabase/Classes/Domain/Model/Album,Photo.php

Using comma seperated value when creating controller works perfectly, but using comma seperated values in model creates a file name [commaseperated values].php (as seen above)

History

#1 Updated by Soren Malling over 9 years ago

The same issue is present when creating repositories

#2 Updated by Karsten Dambekalns almost 9 years ago

  • Status changed from New to Resolved
  • Assignee set to Karsten Dambekalns

Well, the documentation doesn't say this is supposed to work, and how could it? You would probably never want to have the same properties for multiple models. The Getting Started tutorial says:

The syntax is @./flow3 kickstart model PackageKey ModelName propertyName:type propertyName:type ...@

Thus having one command per model makes sense, no? For controllers specifying multiple names at once is possible, since they need no further input to be created.

Also available in: Atom PDF