symfony

Symfony2: How to share objects when writing fixtures

This is a small post to explain to you how to simply share objects when you write your fixtures on Symfony2. Let’s assume you have 2 class, Game and Platform linked together as a One to Many relation (one game may have One or Many Platforms). How to tell Doctrine2 to link Platform Y to this Game X ? namespace … Continue reading