khepin/KhepinYamlFixturesBundle — Issue #5: Add embedded fixtures
Author: khepin
Created: 2012-02-09 04:47:54+00:00
State: open

Sometimes it doesnt make sense or makes things hard to understand to have fixtures separated across many different files. The goal here is to allow doing something like this:

class: Khepin\My\Bundle\Entity\Car
fixtures:
flying_car:
model: xwing #######
power: 1000 # These are standard attributes
max_speed: lightspeed #######
passengers: ##########
passenger_1: # A collection of fixtures
name: Luke # defined directly in the same
passenger_2: # fixture
name: Lea ##########
driver: ##########
name: Obiwan Kenobi # A single embedded fixture