Bug #30980

Generating ActionControllers using a comma separated list creates wrong Models and Repositories

Added by Julian Wachholz over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Could have
Start date:
2011-10-16
Due date:
% Done:

100%

Estimated time:

Description

Using the following command:

./flow3 kickstart:actioncontroller --generate-related --generate-actions Acme.Demo Animal,Zoo

One would expect the Kickstarter to create 2 Models and 2 corresponding Repositories:

Model/Animal.php
Model/Zoo.php
Repository/AnimalRepository.php
Repository/ZooRepository.php

Instead, the following Model and Repository are created:

Model/Animal,Zoo.php
Repository/Animal,ZooRepository.php

#1

Updated by Julian Wachholz over 10 years ago

It also requires the --generate-actions flag to be set as well.

#2

Updated by Mr. Hudson over 10 years ago

Patch set 1 of change I7b9e25ea0154ccc670bc04f99a657299ccf5f40c has been pushed to the review server.
It is available at http://review.typo3.org/5882

#3

Updated by Karsten Dambekalns over 10 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Karsten Dambekalns

For it works fine, using current master:

karsten@kmac:flow3  (master)$ ./flow3 kickstart:actioncontroller --generate-related Acme.Demo Animal,Zoo
Created .../Acme.Demo/Classes/Controller/AnimalController.php
Created .../Acme.Demo/Resources/Private/Templates/Animal/Index.html
Created .../Acme.Demo/Classes/Controller/ZooController.php
Created .../Acme.Demo/Resources/Private/Templates/Zoo/Index.html

#4

Updated by Karsten Dambekalns over 10 years ago

  • Status changed from Needs Feedback to Accepted

Karsten Dambekalns wrote:

For it works fine, using current master:[...]

Dang, missed the needed --generate-actions, then it's indeed broken.

#5

Updated by Karsten Dambekalns over 10 years ago

  • Status changed from Accepted to Resolved
  • Target version set to 1.0.0
  • % Done changed from 0 to 100

Also available in: Atom PDF