Reputation: 366
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
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
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