jpicaude
jpicaude

Reputation: 366

how not to load fixtures into the database?

I have to load some fixtures in my symfony1 database, but they depend on data which is already stored. The problem is that if I dump the dependent data, in order to complete my yml file, it will be reinserted into the database, and this is the thing I want to avoid.

Do you know any trick to do this ?

Upvotes: 1

Views: 115

Answers (2)

jpicaude
jpicaude

Reputation: 366

There is no way to do what I want. I had to dump my existing tables, then edit my yml to make it corresponding to the dumped data, then reload everything.

Upvotes: 1

Joris Ros
Joris Ros

Reputation: 379

I only know it for Propel, there is a task append:

./symfony propel:data-load --append

The append task will not empty your database, but will append the fixture data to the tables.

Upvotes: 0

Related Questions