propelorm/PropelBundle — pull request #114 by havvg (2012-03-02 17:05:23+00:00)
Title: [WIP] allow self reference in DataLoader

Current limitation: The PK column has to be the first column in referencing data.

It's not ready to merge, as there are no actual tests for this.
I'm in a thinking process on how to test the complete `DataFixtures` feature.

This allows to reference on previous entries of the same model, thus issuing on `UPDATE` rather than an `INSERT` on the object. This is helpful, if you need to load fixtures with `VersionableBehavior` attached and loading multiple versions.

An example YAML fixtures file:

```yaml
Acme\Bundle\BlogBundle\Model\Post:
Post:
name: "A very interesting one"
content: "Content with a typoe."
version: 1
version_created: 2012-02-29 12:03:23

Post_V2:
id: Post
name: "A very interesting one"
content: "Content without the typo."
version: 2
version_created: 2012-02-29 12:07:12

```

This would create *one* `Post` entry, but with two `PostVersion` of it.