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.
MIT License
83 stars 36 forks source link

Issue in Symfony 2.8 #41

Closed allo86 closed 8 years ago

allo86 commented 8 years ago

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

jordillonch commented 8 years ago

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.

lcube45 commented 8 years ago

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

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

jordillonch commented 8 years ago

Great! Please create a pull request.

lcube45 commented 8 years ago

i'll try

hatabdel commented 8 years ago

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

lcube45 commented 8 years ago

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()); }

gonzaloalonsod commented 8 years ago

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

jordillonch commented 8 years ago

Fixed

jordillonch commented 8 years ago

Thanks @lcube45 for the patch suggestion.