jordillonch / CrudGeneratorBundle

This Symfony2 bundle aims to be the bundle that you are looking for create a nice CRUD with pagination, filter, translation and Twitter bootstrap 2.2.2 features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue in Symfony 2.8

allo86 opened this issue · comments

I am getting this error when trying to create the CRUD:

[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: Missing argument 2 for Sensio\Bundle\GeneratorBundle\Generator\Doc
trineCrudGenerator::__construct(), called in /var/www/html/pruebas/vendor/j
ordillonch/crud-generator/JordiLlonch/Bundle/CrudGeneratorBundle/Command/Jo
rdiLlonchCrudCommand.php on line 38 and defined

I'm sorry but I don't have time to look the issue. Please try to find the problem and open a pull request if there is a problem in the bundle.

commented

JordiLlonchCrudCommand is extending GenerateDoctrineCrudCommand which is waiting for 2 parameters in his constructor :

  • filesystem
  • rootdir

Changes made on SensioGeneratorBundle 05/12/2015 in the master branch

Great! Please create a pull request.

commented

i'll try

I have the same problem,, please any solution !!!

commented

patch file : jordillonch\crud-generator\JordiLlonch\Bundle\CrudGeneratorBundle\Command\JordiLlonchCrudCommand.php line 38 as following

protected function createGenerator($bundle = null) { return new JordiLlonchCrudGenerator($this->getContainer()->get('filesystem'),$this->getContainer()->get('kernel')->getRootDir()); }

Buenas hice algunos cambios en mi version de Crud pero aun no funciona del todo bien igual les paso el repo para ver si nos ayuda a todos: https://github.com/MWSimple/AdminCrudBundle/blob/version30/Command/MWSimpleCrudCommand.php

Fixed

Thanks @lcube45 for the patch suggestion.