Bug #30980

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

Added by Julian Wachholz almost 4 years ago. Updated almost 4 years ago.

Status:Resolved Start date:2011-10-16
Priority:Could have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:-
Target version:TYPO3 Flow Base Distribution - 1.0.0
Affected Flow version:

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

Associated revisions

Revision 3a630b87
Added by Julian Wachholz almost 4 years ago

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

Change-Id: I7b9e25ea0154ccc670bc04f99a657299ccf5f40c
Fixes: #30980

History

#1 Updated by Julian Wachholz almost 4 years ago

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

#2 Updated by Mr. Hudson almost 4 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 almost 4 years ago

  • Status changed from New to Needs Feedback
  • Assigned To 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 almost 4 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 almost 4 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