Hi, I have successfully got the mapping xml files to be generated.
than I ran the entities script but the following error:

[Doctrine\ORM\Mapping\MappingException]

Class Application\HelloBundle\Entities\User is not a valid entity or
mapped super class.

any ideas?

On Aug 5, 12:49 am, Florian <[email protected]> wrote:
> Hi,
>
> you have to create a mapping file before: a schema.yml or .xml for
> example.
>
> try to run "php hello/console help doctrine:generate:entities" and you
> will see the HELP of this command.
>
> Try using "doctrine:mapping:import" to generate a schema.yml file from
> an exisitng database, an then run "doctrine:generate:entities"
>
> Hope it helps!
> Florian.
>
> On 5 août, 04:21, Michael <[email protected]> wrote:
>
> > I'm using Symfony2 PR3 and trying to auto generate doctrine entities.
> > I have created a database with some tables and set config.yml with:
>
> > doctrine.dbal:
> >     dbname:   dbname
> >     user:     root
> >     password: root
>
> > doctrine.orm: ~
>
> > when I try to run "php hello/console doctrine:generate:entities"
> > nothing happened.
>
> > any idea? do I need to manually create the classes?
>
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to