[symfony-users] Re: Generate fixture from database contents

2009-03-16 Thread Steve the Canuck
Very much appreciated. Thanks. :-) On Mar 15, 2:04 pm, "Yevgeniy A. Viktorov" wrote: > I do same as maestro wrote, also you can specify the models you would > like to get fixtures for, i.e: > symfony propel:data-dump --classes="BlogPost,BlogComment" frontend > > Thanks. > > maestro wrote: > > I

[symfony-users] Re: Generate fixture from database contents

2009-03-15 Thread Lee Bolding
Nice tip - I didn't know that feature existed Looks like the same works for Doctrine too :) I'll definitely be using that in future On 15 Mar 2009, at 18:04, Yevgeniy A. Viktorov wrote: > > > I do same as maestro wrote, also you can specify the models you would > like to get fixtures for, i.e:

[symfony-users] Re: Generate fixture from database contents

2009-03-15 Thread Yevgeniy A. Viktorov
I do same as maestro wrote, also you can specify the models you would like to get fixtures for, i.e: symfony propel:data-dump --classes="BlogPost,BlogComment" frontend Thanks. maestro wrote: > I usually use symfony propel:data-dump > fixture.yml. Then edit the > file if i have to. > > On Mar 14

[symfony-users] Re: Generate fixture from database contents

2009-03-15 Thread maestro
I usually use symfony propel:data-dump > fixture.yml. Then edit the file if i have to. On Mar 14, 2:59 am, Java Guy wrote: > Is there a task or method anyone knows of to generate a fixture from a > plugin? > > I've got some initial data I've put into my database using a fixture? > But some of it

[symfony-users] Re: Generate fixture from database contents

2009-03-13 Thread Lee Bolding
I forgot - phpMyAdmin also allows you to export to YAML That'd probably be quicker On 13 Mar 2009, at 18:59, Java Guy wrote: > > Is there a task or method anyone knows of to generate a fixture from a > plugin? > > I've got some initial data I've put into my database using a fixture? > But some

[symfony-users] Re: Generate fixture from database contents

2009-03-13 Thread Lee Bolding
Try the sfYamlDumper class - http://www.symfony-project.org/api/1_2/sfYamlDumper You'll probably need to write a small action/task to dump each object, but shouldn't be too hard :) On 13 Mar 2009, at 18:59, Java Guy wrote: > > Is there a task or method anyone knows of to generate a fixture fr