Sharing data between fixtures

Now that you have some fixtures created, you may have run into a little problem. What happens when data in one table is dependant on data being in another table? After all, It wouldn't be much use if our fixtures were unable to get Relational in a relational database.

So in this video we look at exactly how to resolve that issue. It's much easier than you might think, so let's get started.

Code For This Video

Get the code for this video.


# Title Duration
1 Installing Doctrine Fixtures Bundle 09:40
2 Sharing data between fixtures 13:23
3 One solution for quickly reloading fixtures 04:09