vitiko / IphpFileStoreBundle

Symfony 2 file upload for doctrine entities
http://symfonydev.ru/iphpfilestorebundle/
51 stars 23 forks source link

symfony3 support #43

Open ghost opened 8 years ago

ghost commented 8 years ago

I'm using symfony3 for my new project. As usual I installed this bundle and when I execute "php bin/console doctrine:generate:entities AppBundle" command to generate my entities i get follow error in my terminal:

Fatal error: Class Iphp\FileStoreBundle\Command\RepairFileDataCommand contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Sensio\Bundle\GeneratorBundle\Command\GeneratorCommand::createGenerator) in /Users/any-user/workflow/php/my-app-name-here/vendor/iphp/filestore-bundle/Iphp/FileStoreBundle/Command/RepairFileDataCommand.php on line 16

Sorry for my English, have a nice day.

murtukov commented 8 years ago

In your Symfony 3 directory open following file: \vendor\iphp\filestore-bundle\Iphp\FileStoreBundle\Command\RepairFileDataCommand.php

and add following empty method to class RepairFileDataCommand :

protected function createGenerator() {
}