Any solution for this problem yet? I manually entered all the relations in the schema.yml generated from an existing database using doctrine-build-schema, and then used doctrine-build-sql to create sql with Foriegn Key constraints. I exported this sql to the database, and then retried doctrine-build- schema. The generated schema still doesn't have any relations!
This is really frustrating...could someone please find a way through? Thanks. --------------- http://s1d.in On Dec 10, 1:32 pm, munim <[EMAIL PROTECTED]> wrote: > Actually, I have tried the blog example and it worked perfectly... but > surprisingly, its not working for my database. i have the proper > indexes and foreign keys in my database as the blog example. > does anyone know a proper way to include relations in the schema from > a MyISAM database? > > On Dec 10, 11:01 am, Jagtesh Chadha <[EMAIL PROTECTED]> wrote: > > > Hi Munim > > > Have you tried emulating the blog example on the Symfony page? It > > worked for me when I tried it. > > But I've heard of people getting this problem before, maybe it's a > > bug. > > > On Dec 10, 2:23 am, munim <[EMAIL PROTECTED]> wrote: > > > > I am using symfony along with sfdoctrineplugin. > > > I have MyISAM tables in MySQL. The foreign keys are specified in the > > > tables > > > as "tablename_id". Now, I want to generate the YAML schema along with > > > the relations without explicitly coding the relations in the schema > > > myself. The "symfony doctrine-build-schema" command doesn't generate > > > schema along with the relations. > > > I tried converting the tables to InnoDB storage engine, adding indexes > > > and foreign keys, but the generated schema still didn't include > > > relations. > > > Could someone explain how do I get the relations in the schema with > > > the build schema command? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---
