ddeboer/DdeboerDataImportBundle — pull request #2 by pulse00 (2012-04-25 12:06:04+00:00)
Title: Implemented DbalReader

This PR adds a DbalReader to read data from a SQL Database without the doctrine orm layer.

Additionally, i've moved the new instance creation of the entity and the setter call in the `DoctrineWriter` to separate methods to ease overriding.

Usecase for the `new $className` refactoring: sometimes you want a service create the instances, for example in the `FosUserBundle` you use a `manipulator` service:

``` php
generatePasswordSomehow();
return $this->userManipulator->create($item['username'], $password, $item['email'], false, false);
}

```

As for the `setter` refactoring, you'll probably want to do some additional logic when setting a field:

``` php
translate('de')->setDescription($value['de']);
$entity->translate('en')->setDescription($value['en']);
$entity->setDescription('');
return;
}

parent::setValue($entity, $value, $setter);
}
```