Tuesday, August 24, 2010

Control Loading Order / Sequence of Fixtures in Symfony 1.4

Problem:

I want to split my fixtures into separate files in the fixtures directory but when I try to load the data, I get constraint errors.

Solution:
Symfony has a solution for determining the sequence it should use to load fixtures, that is by placing a number in from of the original file name. I use 1_filename.yml.

Good luck programming.

No comments: