Symfony2 bundle for Pomm2 / erreur lors de la génération du model

47 views
Skip to first unread message

Monpetit

unread,
Jan 6, 2015, 11:36:40 AM1/6/15
to pommp...@googlegroups.com
Bonjour,

J'utilise Symfony2.6.

J'ai suivi les instructions de la page https://github.com/pomm-project/pomm-bundle

Cependant lorsque je souhaite generer les fichiers du model avec :
$ app/console pomm:generate:relation-all -d src -a 'MonBundle\Model' db mabase

j'obtiens l'erreur suivante :

  [PommProject\Cli\Exception\CliException]                                   
  Could not load configuration '/var/www/monsite/.pomm_cli_bootstrap.php'.

pourtant la config est dans config.yml de Symfony2 (donc si j'ai bien compris il n'y a pas besoin de creer un fichier .pomm_cli_bootstrap.php) :

pomm:
    configuration:
        my_db1:
            dsn: 'pgsql://monuser:monpassword@localhost:5433/mabase'
    logger:
        service: '@logger'

Je ne vois pas comment resoudre le probleme.
Merci beaucoup pour votre aide.

Grégoire Hubert

unread,
Jan 6, 2015, 12:01:34 PM1/6/15
to pommp...@googlegroups.com
Hello Jules,

Could you please open a ticket here : https://github.com/pomm-project/pomm-bundle/issues/new

Do not hesitate to reach us here if you had trouble opening the issue.

Thank you.

--
You received this message because you are subscribed to the Google Groups "PommProject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pommproject...@googlegroups.com.
Visit this group at http://groups.google.com/group/pommproject.
For more options, visit https://groups.google.com/d/optout.



--
Grégoire HUBERT
Pomm : http://www.pomm-project.org

Grégoire Hubert

unread,
Jan 6, 2015, 12:04:05 PM1/6/15
to pommp...@googlegroups.com
As a work around, here is a .pomm_cli_bootstrap.php file that is reported to work with Sf2:

<?php

$kernel = new \AppKernel('dev', true);
$kernel->boot();

return $kernel->getContainer()
    ->get('pomm');


Regards,

Monpetit

unread,
Jan 7, 2015, 9:45:56 AM1/7/15
to pommp...@googlegroups.com
Grégoire,

Thank you very much for your fast reply.
I posted the error on the pomm bundle github page
.
I'm going to use your trick for now.

Thanks.
Reply all
Reply to author
Forward
0 new messages