ddeboer/DdeboerDataImportBundle — pull request #1 by pulse00 (2012-03-12 16:33:49+00:00)
Title: Added MappedDoctrineWriter

Overview
=======

Added a `MappedDoctrineWriter` which allows to map input item fields to database fields. Use case is when importing an CSV file from some 3rd party which contains different fields than your entities.

Currently only a XML driver is implemented.

Simply add the `csvfield` metadata node to your schema file:

``` XML

```

When importing a CSV file, the values in the `SomeOtherStatus` field will be automatically set to the `deliveryStatus` field of the entity.

Modifications
==========

- Moved the update logic in `DoctrineWriter` to a dedicated `updateItem` method to ease overriding.

Tests
====

- As my local phpunit installation is currently broken after a php 5.4 upgrade, i'm unable to run tests ... However, the [built in](http://travis-ci.org/#!/pulse00/DdeboerDataImportBundle) tests all pass.