Bug #7726
model kickstarter doesn't accept comma seperated model names
Status: | Resolved | Start date: | 2010-05-09 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
Affected Flow version: |
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 about 5 years ago
The same issue is present when creating repositories
#2 Updated by Karsten Dambekalns almost 5 years ago
- Status changed from New to Resolved
- Assigned To 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.