Bug #7676

repository kickstarter create invalid PHP

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

Status:
Resolved
Priority:
Must have
Target version:
-
Start date:
Due date:
% Done:

100%


Description

Using FLOW3 1.0.0 Alpha 8

./flow3 kickstart PhotoDatabase image

created the following PHP, which is invalid due to missing {}

class ImageRepository extends \F3\FLOW3\Persistence\Repository

It should be

class ImageRepository extends \F3\FLOW3\Persistence\Repository {

}

Sorry if this is fixed in SVN, but couldn't find any other issue on this one

History

#1 Updated by Michael Sauter over 9 years ago

I think this is a problem with Fluid, see bug #6779.

#2 Updated by Soren Malling over 9 years ago

Michael Sauter wrote:

I think this is a problem with Fluid, see bug #6779.

Must disagree :) the domain model and controller are created with no errors and the template looked 99% the same when I had a look at them yesterday

#3 Updated by Michael Sauter over 9 years ago

Søren Malling wrote:

Michael Sauter wrote:

I think this is a problem with Fluid, see bug #6779.

Must disagree :) the domain model and controller are created with no errors and the template looked 99% the same when I had a look at them yesterday

I know, they're 99% the same. But there's 1% difference :)
Quick fix: Open up Packages/Framework/Kickstart/Resources/Private/Generator/Repository/RepositoryTemplate.php.tmpl and add a comment in between the curly brackets. This will result in a correct PHP file.

#4 Updated by Karsten Dambekalns over 9 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns
  • Start date deleted (2010-05-05)

#5 Updated by Karsten Dambekalns over 9 years ago

  • Project changed from TYPO3.Flow to kickstarter

#6 Updated by Karsten Dambekalns over 9 years ago

  • Project changed from kickstarter to TYPO3.Kickstart

#7 Updated by Karsten Dambekalns about 9 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF