[symfony 1.4] data-dump doesn't work

Discussion relating to version 1.3.x and 1.4.x

[symfony 1.4] data-dump doesn't work

Postby N31m4d » Thu Jul 26, 2012 11:04 am

Hi everyone,

I having some troubles with the data-dump command on symfony 1.4.

My websites works on a IIS server with a SQL Server database.
I would like to update some tables in one of my databases so I execute the command "php symfony doctrine:data-dump" to be sure to have my datas back if something gets wrong.

But when I want to execute it nothing happen. The file 'fixtures/data.yml' isn't updated. The command looks like it running but after several minutes nothing happen with no other choice but to kill the task.

I tested the data-dump command with an other website on the same server with an other database with few data and it works fine, so I thought that doesn't work cause of the first database contains a lot of datas.
I tested it with a copy of the database on a wamp server and it worked too.

So do you have an idea of what is happenning ?

Thanks for your answers, and sorry for my bad english but i'm french :)
N31m4d
Junior Member
 
Posts: 5
Joined: Fri Jul 08, 2011 9:12 am

Re: [symfony 1.4] data-dump doesn't work

Postby smugford » Tue Sep 04, 2012 6:27 pm

data dump and fixtures are NOT good if you have a large database full of data.

Use phpMyAdmin and/or straight SQL to move your data.

If there is related data in one table that is needed by another table it will do what you are talking about.

Don't trust data-dump for your data!
User avatar
smugford
Faithful Member
 
Posts: 205
Joined: Sun Nov 29, 2009 8:32 pm


Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: Bing [Bot] and 4 guests