Hi, MongoDB doesn't have a console utility yet. You can specify your mapping info as annotations, xml, yaml, etc. just like the ORM but you need to write your classes by hand.
- Jon On Thu, Aug 5, 2010 at 7:25 AM, Jorge Fuertes <[email protected]> wrote: > Ok. I take a read of it. > > Sorry for the inconveniences and thanks for your time. > > El 05/08/2010, a las 10:18, Florian escribió: > > > Indeed, I missed something: > > > > > http://www.doctrine-project.org/projects/mongodb_odm/1.0/docs/reference/basic-mapping/en#mapping-drivers > > > > There are xml, yml and Annotatation mapping drivers available, but I > > don't know if Symfony handle them correctly in MongoDBBundle. > > > > Good docs available here: > http://www.doctrine-project.org/projects/mongodb_odm/1.0/docs/en > > but it's not Symfony specific. > > > > On Aug 5, 10:07 am, Florian <[email protected]> wrote: > >> Hi, To my mind, there is no schema conversion tool for Doctrine's > >> MongoDB ODM. > >> > >> You have to write your Documents by hand. > >> > >> But maybe I missed something?. > >> > >> Cheers > >> On Aug 5, 9:51 am, Jorge Fuertes <[email protected]> wrote: > >> > >> > >> > >>> Hi. > >> > >>> What if database it's MongoDB? > >>> We need to write the classes or we can to do a schema.yml and generate > from it? > >> > >>> The documentation it's not easy at this point, for me. > >> > >>> Thanks in advance. > >> > >>> El 05/08/2010, a las 09:49, Florian escribió: > >> > >>>> 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]<symfony-devs%[email protected]> > >>>> For more options, visit this group at > >>>> http://groups.google.com/group/symfony-devs?hl=en > >> > >>>> -- > >>>> Analizado antispam/virus. > >> > >>> _________________________________________________________ > >> > >>> Jorge Fuertes -http://jorgefuertes.com > >>> [email protected] > >>> GnuPG key-id: 6B55C7A8 > >>> Socio Hispalinux nº: 1510 > >>> _________________________________________________________ > > > > -- > > 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]<symfony-devs%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/symfony-devs?hl=en > > _________________________________________________________ > > Jorge Fuertes - http://jorgefuertes.com > [email protected] > GnuPG key-id: 6B55C7A8 > Socio Hispalinux nº: 1510 > _________________________________________________________ > > > > > > > -- > 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]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- Jonathan H. Wage http://www.twitter.com/jwage -- 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
