For the form types I needed a one dimensional array. And as I think I will use it more often I added this to doctrine as a Hydrator.

The "Column"-Hydrator class:

namespace .... Doctrine\Hydrator;

use Doctrine\ORM\Internal\Hydration\AbstractHydrator, PDO;

class ColumnHydrator extends AbstractHy...

Continue reading...