Live geek or die tryin'

Posted on by Dinduks


The following isn’t an exact science, however, if you didn't --help, it will spare you a 10min research.
This is your lifesaver: --em

Example

In case you want to generate mapping information using the “client” entity manager:

php app/console doctrine:mapping:convert yml /src/Acme/ClientBundle/Resources/config/doctrine/metadata/orm --from-database --force --em="client

Translated from my french post Symfony2: Executer les commandes console sur un Entity Manager spécifique

Posted on by Dinduks | Posted in Development, Pieces of code, Symfony 2 | Tagged , , ,


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>