Add support for composite primary keys in DoctrineWriter.